Complex sentence: They lived in Wilno 1785--1787 and in Göttingen and Mainz 1788--1792 and had three children, but an unhappy marriage.
Split into simpler sentences: They lived in Wilno 1785--1787 and in Göttingen and later in Mainz 1788--1792. The couple had three children, but an unhappy marriage.