Add support for different subquery table alias features; Organise and add planner tests for subqueries