Generate select clauses in terms of expr-to-sql

Added top-down tests for WHERE, GROUP BY, HAVING, LIMIT, OFFSET
clauses to ensure their content is passed through expr-to-sql.
Then, as long as expr-to-sql works correctly, so will SQL
generation of these clauses.
Add top-down tests for order-by-clause