Which of the following contributed to China’s economic revolution during the Tang and Song dynasties?

A. The active suppression of internal trade in order to increase long-distance trade
B. The import of large numbers of slaves to work in agriculture and industry
C. The large scale immigration of Japanese workers
D. A complex network of internal waterways that provided cheap transportation