Worked with the query method