sqlgen: Adding GROUP BY clause support.