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