Finished queries for HW1