new file:   query.py