added the query to ex1