Simplified aggregation functions in QueryResults.