Task: Text to Code
Input (English): select the row whose attendance record of all rows is maximum . the tie no record of this row is 51 .
Output (English): eq { hop { argmax { all_rows ; attendance } ; tie no } ; 51 }