What is {patron saint} of {active in} of {Adrian IV} ?
Give me the name of the active patron saint of Adrian IV.
Which is the active patron saint of Adrian IV?
SELECT ?h WHERE { resource:Adrian_IV property:work_location ?n . ?n property:patron_saint ?h }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q132845> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937>. ?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/P417> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q132845 wdt:P937 ?X . ?X wdt:P417 ?answer}
Paul Peter