Task: Text to Code
Input (English): select the row whose duration record of all rows is 2nd maximum . the interregnum began record of this row is 20 october 1740 death of charles vi .
Output (English): eq { hop { nth_argmax { all_rows ; duration ; 2 } ; interregnum began } ; 20 october 1740 death of charles vi }