first queries set up