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 jacobo .
Output (English): eq { hop { nth_argmin { all_rows ; average ; 2 } ; goalkeeper } ; jacobo }