Code from lecture on conditions and subqueries