What impact did the building of canals have in China during the Song and Tang dynasties?

A.
The canals were eventually used for military routes.

B.
The canals improved irrigation systems in the rice fields.

C.
The canals made it easier for neighboring nations to attack China.

D.
The canals connected waterways which increased trade.

D. The canals connected waterways which increased trade.