generate real queries