What is {position occupied} of {John A. Macdonald}, that has {position holder} is {Alexander Mackenzie} ?
What function used to be occupied via John A. Macdonald and is now held through Alexander Mackenzie?
What position was occupied by John A. Macdonald and is now held by Alexander Mackenzie?
SELECT ?d WHERE { resource:John_A._Macdonald property:position_held ?d . ?d property:officeholder resource:Alexander_Mackenzie }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128702> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1308> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q128708> . }
SELECT ?answer WHERE { wd:Q128702 wdt:P39 ?answer . ?answer wdt:P1308 wd:Q128708}