What is the {country} for {contains administrative territorial entity} of {Beijing}
In which nation is Beijing?
In which country is Beijing?
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:country . ?b property:contains_administrative_territorial_entity resource:Beijing }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P150> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q956> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6256> } 
 select distinct ?sbj where { ?sbj wdt:P150 wd:Q956 . ?sbj wdt:P31 wd:Q6256 } 
People's Republic of China