adding query_context