What is {position held} of {William McMahon} that is {replaces} is {John Gorton} ?
Which position did William McMahon replace John Gorton in?
SELECT ?obj WHERE { wd:Q356261 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q356411 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q356261> .
?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/Q356411>
} 

John Gorton was replace by William McMahon in what position?