Queries are stored in a hashset