Task: Text to Code
Input (English): select the row whose goals record of all rows is 2nd maximum . the nationality record of this row is ireland .
Output (English): eq { hop { nth_argmax { all_rows ; goals ; 2 } ; nationality } ; ireland }