boolean hasAggregates() { for (ExprSpecContext esc : allExprs) { if (HQLParser.hasAggregate(esc.finalAST)) { return true; } } return false; }