getQuery tets