Implementation of the new Query Planner (incomplete) and Expressions support.