Task: Text to Code
Input (English): select the row whose original air date record of all rows is 2nd maximum . the production code record of this row is 407 .
Output (English): eq { hop { nth_argmax { all_rows ; original air date ; 2 } ; production code } ; 407 }