Task: Text to Code
Input (English): eq { hop { nth_argmin { all_rows ; first elected ; 7 } ; district } ; south carolina 3 }
Output (English): ordinal