Task: Text to Code
Input (English): eq { hop { nth_argmax { all_rows ; avg attend ; 2 } ; indoor year } ; 1978 }
Output (English): ordinal