clean subqueries
slides example