main_query