GROUP BY with aggregates (like count) support