Added support for aggregate queries to the evaluator (LP#14007481)