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