Question: Who painted their mansions red during the Song and Tang dynasties?
Sentence: In the Tang and Song Dynasties, gates of palaces were usually painted red, and nobles often painted their entire mansion red.
Answer in sentence: yes