What is {position held} of {Peter Fraser} that is {replaced by} is {Walter Nash} ?
What job did Peter Fraser lose to Walter Nash?
What was Peter Fraser's job before being replaced by Walter Nash?
SELECT ?v WHERE { ?x property:replaced_by resource:Walter_Nash . resource:Peter_Fraser property:position_held ?x . ?x property:position_held ?v }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1400226> .
?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/P1366> <http://wikidata.dbpedia.org/resource/Q721770>
} 

SELECT ?obj WHERE { wd:Q1400226 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q721770 }