Complex sentence: He was a member of the Massachusetts House of Representatives in 1857,1863, and 1864 and served as a Republican in the Forty-seventh, Forty-eighth, and Forty-ninth Congresses (1881--1887).
Split into simpler sentences: He was a member of the Massachusetts House of Representatives in 1857,1863, and 1864. He served as a Republican in the Forty-seventh, Forty-eighth, and Forty-ninth Congresses (1881--1887).