What is {position held} of {Damasus I} that is {replaced by} is {Siricius} ?
Before being replaced by Siricus, what role did Damascus I have?
What was the position held by Damascus I before replacement by Siricius?
SELECT ?g WHERE { ?m property:position_held ?g . resource:Damasus_I property:position_held ?m . ?m property:replaced_by resource:Siricius }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q130997> .
?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/Q161443>
} 

SELECT ?obj WHERE { wd:Q130997 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q161443 }