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