Task: Text to Code
Input (English): select the row whose run time record of all rows is 2nd maximum . the episode number record of this row is 311 .
Output (English): eq { hop { nth_argmax { all_rows ; run time ; 2 } ; episode number } ; 311 }