Add support for GROUP BY clause.