What is {chef-lieu} of {Xia dynasty}, that has {post code} is {452470} ?
What is the chef-lieu of Xia line whose post code is 452470?
What is the chef-lieu of Xia dynasty whose post code is 452470?
SELECT ?y WHERE { ?y property:postal_code ?s . resource:Xia_dynasty property:capital ?y . FILTER ( ?s = 452470 ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q169705> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36>. ?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/P281> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <452470> . }
SELECT ?answer WHERE { wd:Q169705 wdt:P36 ?answer . ?answer wdt:P281 ?x FILTER(contains(?x , '452470'))}
Dengfeng