[hibernate-issues] [JIRA] (HHH-9331) Aggregate functions for subqueries not working