Task: Text to Code
Input (English): select the row whose total record of all rows is 2nd maximum . the athlete record of this row is andrea fuentes & gemma mengual .
Output (English): eq { hop { nth_argmax { all_rows ; total ; 2 } ; athlete } ; andrea fuentes & gemma mengual }