Complex sentence: The de Havilland Mosquito operated in many roles during the Second World War, being tasked to perform medium bomber, reconnaissance, tactical strike, anti-submarine warfare and shipping attack and Night fighter duties, both defensive and offensive, until the end of the war.
Split into simpler sentences: The de Havilland Mosquito operated in many roles during the Second World War. Mosquito-equipped squadrons were asked to perform medium bomber, reconnaissance, tactical strike, anti-submarine warfare and shipping attack and Night fighter duties, both defensive and offensive, until the end of the war.