Task: Text to Code
Input (English): select the row whose total passengers record of all rows is 3rd maximum . the rank record of this row is 3 .
Output (English): eq { hop { nth_argmax { all_rows ; total passengers ; 3 } ; rank } ; 3 }