Task: Text to Code
Input (English): eq { hop { nth_argmax { all_rows ; total goals ; 2 } ; total appearances } ; 371 }
Output (English): ordinal