Task: Text to Code
Input (English): select the row whose profits ( billion ) record of all rows is 2nd maximum . the company record of this row is royal dutch shell .
Output (English): eq { hop { nth_argmax { all_rows ; profits ( billion ) ; 2 } ; company } ; royal dutch shell }