DOC: add query docstring