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