When a Chinese government mass detention campaign engulfed Memtimin Emer’s native Xinjiang region three years ago, the elderly Uighur imam was swept up and locked away, along with three of his sons. The database profiles the internment of 311 individuals with relatives abroad in Karakax County, and lists information on more than 2,000 of their relatives, neighbors and friends. Taken as a whole, the database offers the fullest view yet into how Chinese officials decided who to put into and let out of detention camps, as part of a crackdown that has locked away more than a million ethnic minorities, most of them Muslims.