Task: Text to Code
Input (English): select the row whose matches record of all rows is 2nd maximum . the goalkeeper record of this row is joel rodríguez .
Output (English): eq { hop { nth_argmax { all_rows ; matches ; 2 } ; goalkeeper } ; joel rodríguez }