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