What is {electoral district} and {elected in} of {{John F. Kennedy} has {position held} as {United States senator}}
In what district did John F Kennedy hold his position as a US senator?
Which {electoral district} {elected in} {{John F. Kennedy} has {position held} as {United States senator}}?
SELECT ?i ?f WHERE { ?b property:electoral_district ?i . resource:John_F._Kennedy property:position_held ?b . ?b property:position_held resource:United States senator . ?b property:elected_in ?f }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9696> . ?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/Q13217683>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q9696 p:P39 ?s . ?s ps:P39 wd:Q13217683 . ?s pq:P768 ?value1 . ?s pq:P2715 ?value2 }