Three mass genocides and mass rapes happened to Sogdians, Jurchens and Manchus in the exact same city.
Many Sogdians settled in Jicheng (Beijing) until the An Lushan or An-Shi rebellion (16 December 755 – 17 February 763).
In revenge against An Lushan, the Tang dynasty Goguryeo general Gao Juren genocided caucasoid Sogdians when defeating An Lushan and retaking Jicheng.
https://archive.is/4TAGC#p10105977During the Jin dynasty (1115–1234) the Jurchens organized their own people in the Mengan (Minggan) Mouke system and transfered 3 million Jurchens from Manchuria (Heilongjiang and Jilin) south to cities like Zhongdu (Beijing) and Bianjing (Kaifeng). They razed their own capital and palaces in Shangjing (Acheng, Harbin) in Heilongjiang.
In 1215, Genghis Khan sacked Jurchen majority Zhongdu, leaving the ground soaked in fat as Jurchen women were mass raped and Jurchen men killed. Genghis Khan took Jurchen Wanyan princess Qiguo as his concubine.
In 1233, the Mongols and Han Chinese forces besieged Jurchens in Bianjing (Kaifeng) and Han Chinese officer Cui Li defected and opened the gate for them. Han Chinese officials and civilians were spared while the Mongols ordered all Jurchen Wanyan princes executed and took Jurchen Wanyan princesses as sex slaves to Mongolia under Ögedei's orders, avenging the Jingkang incident of 1125-1127. Han Chinese General Shi Tianze had defeated the 80,000 strong army of Jurchen prince Wanyan Chengyi at Pucheng in 1232 paving the way to Kaifeng. Shi Tianze's son Shi Gang married a Mongol Kerait woman while Jurchen women became sex slaves of Mongols.
Meanwhile in 1276 when the Han Chinese Southern Song child Emperor Gong (Zhao Xian) capitulated with his mother in the capital Lin'an (Hangzhou), Kublai Khan ordered none of them to be harmed or raped and instead he married off his own daughter, a Borjigin princess to Zhao Xian. She gave birth to his son Zhao Wanpu.