What is {position held} of {José Ramos-Horta} that is {replaced by} is {Taur Matan Ruak} ?
Which was the position that held Jose Ramos-Horta and then was replaced by Taur Matan Ruak?
What was the position held by Jose Ramos-Horta which was replaced by Taur Matan Ruak?
SELECT ?p WHERE { ?b property:replaced_by resource:Taur_Matan_Ruak . ?b property:position_held ?p . resource:José_Ramos-Horta property:position_held ?b }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11665> .
?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/Q57519>
} 

SELECT ?obj WHERE { wd:Q11665 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q57519 }