Complex sentence: He studied at the Saint Petersburg State University and was a primary school teacher in Łomża.
Split into simpler sentences: He studied at the Saint Petersburg State University. He was primary school teacher in Łomża.