单项选择题

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

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