what is the {elected in} for {Edmund Barton} has {position held} as {Member of the Australian House of Representatives} ?
Who is elected in Edmund Barton, the Member of the Australian House of Representatives?
What is elected in Edmund Barton, the Member of the Australian House of Representatives?
SELECT ?v WHERE { ?p property:elected_in ?v . resource:Edmund_Barton property:position_held ?p . ?p property:position_held resource:Member_of_the_Australian_House_of_Representatives }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23342> .
?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> <http://wikidata.dbpedia.org/resource/Q18912794> .
?statement <http://www.wikidata.org/entity/P2715> ?value. 
} 

SELECT ?value WHERE { wd:Q23342 p:P39 ?s . ?s ps:P39 wd:Q18912794 . ?s pq:P2715 ?value}