Make docstrings in query.py informative.