Question: When was John F. Kennedy the United States representative?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q9696 p:P39 ?s . ?s ps:P39 wd:Q13218630 . ?s pq:P582 ?value}