query_main_nutrients function