What is {public office} of {Justin Trudeau}, that has {incumbent} is {John Diefenbaker} ?
John Diefenbaker is the incumbent for what public workplace held by way of Justin Trudeau?
John Diefenbaker is the incumbent for what public office held by Justin Trudeau?
SELECT ?t WHERE { ?t property:officeholder resource:John_Diefenbaker . resource:Justin_Trudeau property:position_held ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3099714> . ?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/Q128614> . }
SELECT ?answer WHERE { wd:Q3099714 wdt:P39 ?answer . ?answer wdt:P1308 wd:Q128614}