Complex sentence: He served in the Alabama Senate from 1839 to 1842, and was elected as a Whig to the Thirty-first Congress, holding office from March 4,1849 to March 3,1851.
Split into simpler sentences: He served in the Alabama Senate from 1839 to 1842. He was later elected as a Whig to the Thirty-first United States Congress, holding office from March 4,1849 to March 3,1851.