what is the {replaces} for {Chris Watson} has {position held} as {Prime Minister of Australia} ?
Which Australian Prime Minister followed Chris Watson?
Who replaced Chris Watson as Prime Minister of Australia?
SELECT ?j WHERE { ?x property:position_held resource:Prime_Minister_of_Australia . resource:Chris_Watson property:position_held ?x . ?x property:replaces ?j }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23347> .
?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> <http://wikidata.dbpedia.org/resource/Q319145> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q23347 p:P39 ?s . ?s ps:P39 wd:Q319145 . ?s pq:P1365 ?value}