query updated for readthedocs