Task: Text to Code
Input (English): eq { hop { nth_argmin { all_rows ; entered service ; 3 } ; locomotive } ; c503 }
Output (English): ordinal