Task: Text to Code
Input (English): select the row whose ties played record of all rows is 2nd maximum . the player record of this row is dovydas šakinis .
Output (English): eq { hop { nth_argmax { all_rows ; ties played ; 2 } ; player } ; dovydas šakinis }