Task: Text to Code
Input (English): select the row whose year record of all rows is 2nd minimum . the formula record of this row is grand prix .
Output (English): eq { hop { nth_argmin { all_rows ; year ; 2 } ; formula } ; grand prix }