What is {CEO's office} of {religious affiliation} of {Bartholomew the Apostle} ?
What is the religious affiliation of Bartholomew the Apostle's CEO office?
What is the CEO's office of the religious affiliation of Bartholomew the Apostle?
SELECT ?e WHERE { resource:Bartholomew_the_Apostle property:religion ?t . ?t property:office_held_by_head_of_the_organization ?e }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q43982> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P140>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2388> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q43982 wdt:P140 ?X . ?X wdt:P2388 ?answer}