Twelve people have been sentenced to death for organizing attacks that left dozens of people dead in the restive western Chinese province of Xinjiang earlier this year.