Complex sentence: At the end of the trial Mandela was convicted and sentenced to life imprisonment of which he served 27 years before he was released and elected President of South Africa.
Split into simpler sentences: At the end of the trial Mandela was convicted and sentenced to life imprisonment. He served 27 years of the sentence before he was released and elected President of South Africa.