Task: Text to Code
Input (English): eq { hop { nth_argmax { all_rows ; distance ; 1 } ; location } ; aplin }
Output (English): ordinal