What is {position held} of {Julius II} that is {replaces} is {Marco Barbo} ?
Julius replaced Marco Barbo in what position.
What position is held by Julius II which was once held by Marco Barbo?
SELECT ?w WHERE { ?i property:replaces resource:Marco_Barbo . resource:Julius_II property:position_held ?i . ?i property:position_held ?w }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80516> .
?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/P1365> <http://wikidata.dbpedia.org/resource/Q1643096>
} 

SELECT ?obj WHERE { wd:Q80516 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q1643096 }