Queries used in week 5 homework.