Task: Text to Code
Input (English): select the row whose semifinalists record of all rows is 4th maximum . the country / territory record of this row is australia .
Output (English): eq { hop { nth_argmax { all_rows ; semifinalists ; 4 } ; country / territory } ; australia }