Task: Text to Code
Input (English): eq { hop { nth_argmax { all_rows ; total elected 2001 ; 2 } ; party } ; democratic party }
Output (English): ordinal