What is {electoral district} and {represents} of {{John Key} has {member of} as {51st New Zealand Parliament}}
WHICH IS THE ELECTORAL DISTRICT AND REPRESENTS JOHN KEY HAS THE MEMBER OF 51ST ZEALAND PARLIAMENTWO
WHICH IS THE ELECTORAL DISTRICT AND REPRESENTS JOHN KEY HAS THE MEMBER OF 51ST ZEALAND PARLIAMENTWO
SELECT ?l ?u WHERE { ?c property:electoral_district ?l . ?c property:represents ?u . ?c property:member_of resource:51st_New_Zealand_Parliament . resource:John_Key property:member_of ?c }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57783> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P463> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4640115>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q57783 p:P463 ?s . ?s ps:P463 wd:Q4640115 . ?s pq:P768 ?value1 . ?s pq:P1268 ?value2 }