“Despite its technological and economic advancements, the Song Dynasty was militarily defeated by nomadic peoples from the north.”