Complex sentence: After school he studied at Jan Kazimierz University in Lwów, gaining a special diploma with high distinction.
Split into simpler sentences: After school he studied in Jan Kazimierz University in Lwów. He gained there special diploma with high distinction.