attach @query to Context