Original: Helsinki had been earlier given the 1940 Summer Olympics, which were canceled due to World War II.
Simplified: Helsinki had been given the 1940 Summer Olympics but they were canceled because of World War II.