Add support for GROUP BY.