What is {position held} of {Benedict XVI} and {followed by}
What role did Benedict XVI hold, and who was once his successor?
What position did Benedict XVI hold, and who was his successor?
SELECT ?e ?f WHERE { resource:Benedict_XVI property:position_held ?a . ?a property:followed_by ?e . . ?a property:position_held ?f }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2494> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q2494 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P156 ?value1 . }