Return query object in query method.