what is the {replaced by} for {James Scullin} has {position held} as {Member of the Australian House of Representatives} ?
Who is replaced by James Scullin, the Member of the Australian House of Representatives?
SELECT ?value WHERE { wd:Q23362 p:P39 ?s . ?s ps:P39 wd:Q18912794 . ?s pq:P1366 ?value}
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. 
} 

Who took over the position after James Scullin left the Australian House of Representatives?