Query: When was Nanjing made a capital again?
Context: It renamed Shengzhou (昇州) in Tang dynasty and resuscitated during the late Tang. It was chosen as the capital and called Jinling (金陵) during the Southern Tang (937–976), a state that succeeded Wu state. It renamed Jiangning (江寧) in Northern Song dynasty and renamed Jiankang in Southern Song dynasty.