add #getQueries method