getting a random query