work on random queries for testing