Task: Text to Code
Input (English): select the row whose population record of all rows is 3rd maximum . the ethnic group record of this row is saho .
Output (English): eq { hop { nth_argmax { all_rows ; population ; 3 } ; ethnic group } ; saho }