getQueries