Question: How long had Nanjing been the capital city of Yangzhou?
Sentence: Nanjing was later the capital city of Danyang Prefecture, and had been the capital city of Yangzhou for about 400 years from late Han to early Tang.
Answer in sentence: yes