Complex sentence: In the following May, he was returned member for the Elgin district of burghs, but after three years resigned his seat, and in July 1810 was elected member for Dumbartonshire, which county he continued to represent until his death in 1820.
Split into simpler sentences: In the following May, he was returned as Member of Parliament for the Elgin district of burghs, but after three years resigned his seat. In July 1810 he was elected member for Dumbartonshire, which county he continued to represent until his death in 1820.