Complex sentence: The last prime minister to have lived in an official residence was Odvar Nordli, who lived in Villa Stenersen, but he moved out before his term ended and turned the residence over to Minister of Trade Hallvard Bakke.
Split into simpler sentences: The last prime minister to have lived in an official residence was Odvar Nordli, who lived in Villa Stenersen. However he moved out before his term ended and turned the residence over to Minister of Trade Hallvard Bakke.