deprecated route for query/queryId