Task: Text to Code
Input (English): select the row whose population ( 2011 ) record of all rows is 2nd maximum . the urban settlement record of this row is ruma .
Output (English): eq { hop { nth_argmax { all_rows ; population ( 2011 ) ; 2 } ; urban settlement } ; ruma }