what is the {replaced by} for {James Scullin} has {position held} as {Member of the Australian House of Representatives} ?
Who took over the position after James Scullin left the Australian House of Representatives?
Who is replaced by James Scullin, the Member of the Australian House of Representatives?
SELECT ?e WHERE { resource:James_Scullin property:position_held ?h . ?h property:replaced_by ?e . ?h property:position_held resource:Member_of_the_Australian_House_of_Representatives }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23362> .
?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/Q18912794> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q23362 p:P39 ?s . ?s ps:P39 wd:Q18912794 . ?s pq:P1366 ?value}