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