phrased the queries and got the data