What is {has villages} of {Xingtai}, that has {inhabitants} is {300029} ?
With 300029 tenants, where is the town of Xingtai?
With 300029 inhabitants, where is the village of Xingtai?
SELECT ?b WHERE { ?b property:population ?n . FILTER ( ?n = 300029 ) . resource:Xingtai property:contains_administrative_territorial_entity ?b }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q58576> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P150>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1082> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <300029> . }
SELECT ?answer WHERE { wd:Q58576 wdt:P150 ?answer . ?answer wdt:P1082 ?x FILTER(contains(?x , '300029'))}