Complex sentence: In the Tang dynasty, the government was divided into three departments: the Department of State Affairs (尚書省), the Zhongshu Sheng (中書省) and the chancellery (門下省) and the head of each department was generally referred to as the "chancellor".
Split into simpler sentences: In the Tang dynasty, the government was divided into three departments: the Department of State Affairs (尚書省), the Secretariat (中書省), and the Chancellery (門下省). The head of each department was generally referred to as the "chancellor".