Complex sentence: He was an unsuccessful candidate for election to the Twenty-first Congress in 1828 and to the Twenty-second Congress in 1830 but was elected as an Anti-Jacksonian to the Twenty-third Congress (March 4,1833-March 3,1835).
Split into simpler sentences: He was an unsuccessful candidate for election to the Twenty-first Congress in 1828 and to the Twenty-second Congress in 1830. Beaty was elected as an Anti-Jacksonian to the Twenty-third Congress (March 4,1833-March 3,1835).