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