query: add support for contexts