Added Q3 with subqueries