homework 9 queries