parse and build sql for LIMIT, OFFSET, ORDER BY, some WHERE operators