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