Complex sentence: Most of its German population had fled to the "mainland" of Germany during the war; the rest were expelled from 1945 to 1950.
Split into simpler sentences: Most of its German population had fled to the "mainland" of Germany during the war. The rest were expelled from 1945 to 1950.