SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/majorShrine> <http://dbpedia.org/resource/St._Peter's_Basilica> . ?x <http://dbpedia.org/property/birthPlace> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Pope>}
What is the location of the pope whose major shrine is St. Peter's Basilica ?
SELECT DISTINCT ?k WHERE { ?b rdf:type ontology:Pope . ?b property:major_shrine resource:St._Peter's_Basilica . ?b property:birth_place ?k }
Rome, Byzantine Empire
The location of the pope whose major shrine is St. Peter's Basilica is [Rome, Byzantine Empire].
[Rome, Byzantine Empire] is the location of the pope whose major shrine is St. Peter's Basilica.