A, B, and C work in Beijing, Nanjing and Chengdu  Their professions are doctors, actors and teachers
Nanjing, Chengdu and Beijing.
 It is known that A does not work in Beijing; B does not work in Nanjing; the one who works in Beijing is not a teacher; the one who works in Nanjing is a doctor; B is not an actor