What is {borders} of {Hamadan Province}, that has {acreage} is {29137.0} ?
What borders the Hamadan Province that has acreage totalling 29127.0?
What borders the Hamadan Province that has acreage totalling 29127.0?
SELECT ?n WHERE { FILTER ( CONTAINS ( ?b , '29137.0' ) ) . resource:Hamadan_Province property:shares_border_with ?n . ?n property:area ?b }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q187373> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?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/P2046> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <29137.0> . }
SELECT ?answer WHERE { wd:Q187373 wdt:P47 ?answer . ?answer wdt:P2046 ?x FILTER(contains(?x , '29137.0'))}