Where is the capital of Song and Yuan Dynasties?

Northern Song Dynasty: the capital-Kaifeng Prefecture, Tokyo (now Kaifeng City, Henan Province);

There were four Beijing in the Northern Song Dynasty-

Kaifeng Prefecture in Tokyo, Henan Prefecture in Xijing (now Luoyang, Henan Province), Daming Prefecture in Beijing (now Daming, Hebei Province) and Yingtianfu in Nanjing (now Shangqiu, Henan Province).

Southern Song Dynasty: Lin 'an (now Hangzhou), the capital city.

Yuan: Dadu (now Beijing)

In addition, Shangdu Road is Kaiping (now northwest of Duolun, Inner Mongolia)