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