Support As and And chaining for select query.