qnli 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.