Task: Text to Code
Input (English): select the row whose attempts record of all rows is 2nd maximum . the name record of this row is anthony thomas .
Output (English): eq { hop { nth_argmax { all_rows ; attempts ; 2 } ; name } ; anthony thomas }