Joins and Subqueries parsing