What is {position held} of {Robert Menzies} that is {replaces} is {Albert Dunstan} ?
Which spot did Robert Menzies trade with Albert Dunstan?
What position was Robert Menzies given to replace Albert Dunstan?
SELECT ?a WHERE { ?j property:position_held ?a . resource:Robert_Menzies property:position_held ?j . ?j property:replaces resource:Albert_Dunstan }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q214438> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P1365> <http://wikidata.dbpedia.org/resource/Q4710054>
} 

SELECT ?obj WHERE { wd:Q214438 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q4710054 }