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