Complex sentence: The riots caused 8 deaths and the end was a total climbdown by the Portuguese Government, which signed two agreements, one with Macau's Chinese community, and the other with mainland China.
Split into simpler sentences: The riots caused 8 deaths and the end was a total climbdown by the Portuguese Government. Two agreements were signed, one with Macau's Chinese community, and the other with mainland China.