get query data