comment evaluate_query method in query.py