Question: When did socialist state for contains administrative territorial entity of Beijing?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P150 wd:Q956 . ?sbj wdt:P31 wd:Q842112 } 
Answer: People's Republic of China