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