Add support for OFFSET/LIMIT/SORT/GROUP BY/HAVING.