CLEAN_QUERY and QUERY_MAP global