Cleaner GroupBy Implementation
Supports e.g. SUM(id*4)