JDBC adapter: Performance improvements: Push down distinct-aggregation; implement un-parse of ORDER BY and a few more functions/operators; generate "table" rather than "(SELECT * FROM table)".