Task: Text to Code
Input (English): select the row whose original air date record of all rows is 2nd minimum . the celebrity record of this row is margot kidder .
Output (English): eq { hop { nth_argmin { all_rows ; original air date ; 2 } ; celebrity } ; margot kidder }