what is the {replaced by} for {Kevin Rudd} has {position held} as {Prime Minister of Australia} ?
Who replaced Keven Rudd as Australia's Prime Minister?
what is the replaced by  Kevin Rudd has position held as Prime Minister of Australia ?
SELECT ?l WHERE { ?y property:replaced_by ?l . ?y property:position_held resource:Prime_Minister_of_Australia . resource:Kevin_Rudd property:position_held ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q43135> .
?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/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q43135 p:P39 ?s . ?s ps:P39 wd:Q319145 . ?s pq:P1366 ?value}