subqueries explained with exercise