changes to ptf_general_queries.q