What is {position held} of {Peter Garrett} that is {replaced by} is {Matt Thistlethwaite} ?
Which position held by Peter Garrett was replaced by Matt Thistlethwaite?
What is the position held by Peter Garrett who is replaced by Matt Thistlethwaite?
SELECT ?k WHERE { ?i property:replaced_by resource:Matt_Thistlethwaite . resource:Peter_Garrett property:position_held ?i . ?i property:position_held ?k }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q528907> .
?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/Q6789423>
} 

SELECT ?obj WHERE { wd:Q528907 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q6789423 }