Complex sentence: All he wanted to do was play; by the time he left school, all he wanted to do was cook.
Split into simpler sentences: All he wanted to do was just play. By the time he left school, all he wanted to do was cook.