Full-featured expression tree builder for SQL queries