Queries HW 2

Completed answers to queries hw 2.