querying phase 2