new method: inQueries() - to check for a random query