refactor suggested_queries.py