Task: Text to Code
Input (English): select the row whose date record of all rows is 2nd maximum . the opponent in the final record of this row is milos raonic .
Output (English): eq { hop { nth_argmax { all_rows ; date ; 2 } ; opponent in the final } ; milos raonic }