What is {county seat for} of {N'Djamena}, that has {has villages} is {Kanem Region} ?
What county seat of N'Djamena contains the villages of the Kanem Region?
What county seat of N'Djamena contains the villages of the Kanem Region?
SELECT ?l WHERE { resource:N'Djamena property:capital_of ?l . ?l property:contains_administrative_territorial_entity resource:Kanem_Region }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3659> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376>. ?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/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q849841> . }
SELECT ?answer WHERE { wd:Q3659 wdt:P1376 ?answer . ?answer wdt:P150 wd:Q849841}
Chad