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