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 6 .
Output (English): eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; game } ; 6 }