Task: Text to Code
Input (English): select the row whose total ( kg ) record of all rows is 3rd maximum . the name record of this row is soraya jiménez ( mex ) .
Output (English): eq { hop { nth_argmax { all_rows ; total ( kg ) ; 3 } ; name } ; soraya jiménez ( mex ) }