HW 9: Queries