first implementation of group by in SQLGenerator