What is the {organization} for {allegiance} of {Ayman al-Zawahiri}
Ayman al - Zawahiri's pledges of loyalty are part of what organization?
Those pledging allegiance to Ayman al-Zawahiri are part of what organization?
SELECT DISTINCT ?o WHERE { resource:Ayman_al-Zawahiri property:allegiance ?o . ?o rdf:type ontology:organization }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q186316> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P945> . ?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/Q43229> } 
 select distinct ?obj where { wd:Q186316 wdt:P945 ?obj . ?obj wdt:P31 wd:Q43229 } 