Task: Text to Code
Input (English): eq { hop { nth_argmin { all_rows ; first elected ; 7 } ; party } ; republican }
Output (English): ordinal