单项选择题

All the flights ______ because of the snowstorm, we had to take the train instead.

A. were canceled
B. had been canceled
C. having canceled
D. having been canceled