Task: Text to Code
Input (English): and { eq { nth_min { all_rows ; first elected ; 1 } ; 1904 } ; eq { hop { nth_argmin { all_rows ; first elected ; 1 } ; incumbent } ; j thomas heflin } }
Output (English): ordinal