What is the {religion} for {facet of} of {history of Islam}
What religion dwells within the history of Islam?
What religion resides in the history of Islam?
SELECT DISTINCT ?c WHERE { resource:history_of_Islam property:facet_of ?c . ?c rdf:type ontology:religion }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q642379> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1269> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q9174> } 
 select distinct ?obj where { wd:Q642379 wdt:P1269 ?obj . ?obj wdt:P31 wd:Q9174 } 