getters for Query object