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