Add "Group By" functionnality in query editor

It is a common feature and quite inevitable for big tables : can you add the possibility to group by columns in the query editor ? It means a checkbok for columns to group by and Aggregator type choice for numbers (sum, avg, etc.).