Task: Text to Code
Input (English): select the row whose 1st week sales record of all rows is 2nd maximum . the artist record of this row is ti .
Output (English): eq { hop { nth_argmax { all_rows ; 1st week sales ; 2 } ; artist } ; ti }