Complex sentence: However, he died of cancer just two years into office and his funeral was the most attended one at that time, earning it a Guinness record.
Split into simpler sentences: However, he died of cancer just two years into office. His funeral had the highest attendance of any to that date, earning it a Guinness record.