What is {main topic} of {history of Afghanistan}, that has {governor} is {Mohammed Nadir Shah} ?
"What is {main topic} of {history of Afghanistan}, which has {governor} is {Mohammed Nadir Shah} ?"
"What is {main topic} of {history of Afghanistan}, which has {governor} is {Mohammed Nadir Shah} ?"
SELECT ?h WHERE { resource:history_of_Afghanistan property:facet_of ?h . ?h property:head_of_state resource:Mohammed_Nadir_Shah }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188872> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1269>. ?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/P35> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q355610> . }
SELECT ?answer WHERE { wd:Q188872 wdt:P1269 ?answer . ?answer wdt:P35 wd:Q355610}