bring back response.query for entities controller