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