What is {position held} of {Leo X} that is {replaced by} is {Adrian VI} ?
Which was the position that was held by Leo X and then replaced by Adrian VI?
What is the position that was once held by Leo X and then replaced by Adrian VI?
SELECT ?n WHERE { ?y property:replaced_by resource:Adrian_VI . resource:Leo_X property:position_held ?y . ?y property:position_held ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q49237> .
?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/P1366> <http://wikidata.dbpedia.org/resource/Q57087>
} 

SELECT ?obj WHERE { wd:Q49237 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q57087 }