What is {has administrative divisions} of {Madagascar}, that has {next to} is {Antananarivo Province} ?
Which Madagascar administrative divisions are next to the Province of Antananarivo?
Which administrative divisions of Madagascar is next to Antananarivo Province?
SELECT ?h WHERE { resource:Madagascar property:contains_administrative_territorial_entity ?h . ?h property:shares_border_with resource:Antananarivo_Province }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1019> . ?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/P47> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q489821> . }
SELECT ?answer WHERE { wd:Q1019 wdt:P150 ?answer . ?answer wdt:P47 wd:Q489821}
Toliara Province Toamasina Province Mahajanga Province Fianarantsoa Province