what is the {replaced by} for {Alfred Deakin} has {position held} as {Member of the Victorian Legislative Assembly} ?
Alfred Deakin replaced whom as Member of the Victorian Legislative Assembly?
Who was replaced by Alfred Deakin as Member of the Victorian Legislative Assembly?
SELECT ?z WHERE { resource:Alfred_Deakin property:position_held ?d . ?d property:replaced_by ?z . ?d property:position_held resource:Member_of_the_Victorian_Legislative_Assembly }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q313805> .
?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/Q18534408> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q313805 p:P39 ?s . ?s ps:P39 wd:Q18534408 . ?s pq:P1366 ?value}