Task: Text to Code
Input (English): select the row whose average record of all rows is 2nd minimum . the goalkeeper record of this row is rubén martínez .
Output (English): eq { hop { nth_argmin { all_rows ; average ; 2 } ; goalkeeper } ; rubén martínez }