query.py [Click to expand]