Task: Text to Code
Input (English): select the row whose crowd record of all rows is 2nd maximum . the venue record of this row is mcg .
Output (English): eq { hop { nth_argmax { all_rows ; crowd ; 2 } ; venue } ; mcg }