Assignment 2 queries