What is {position held} of {John Gorton} and {electoral district}
What is the position held by using John Gorton and in which electoral district does he serve?
What is the position held by John Gorton and in which electoral district does he serve?
SELECT ?w ?d WHERE { resource:John_Gorton property:position_held ?v . ?v property:position_held ?d . ?v property:electoral_district ?w . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q356411> . ?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/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q356411 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P768 ?value1 . }