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