Complex sentence: Pugh was elected as a Republican to the Forty-fifth Congress, serving in office from March 4,1877-March 3,1879, but was an unsuccessful candidate for reelection in 1878 to the Forty-sixth Congress.
Split into simpler sentences: Pugh was elected as a Republican to the Forty-fifth Congress (March 4,1877-March 3,1879). He was an unsuccessful candidate for reelection in 1878 to the Forty-sixth Congress.