Question: At what point did Andrew Johnson end his career as a United States senator?
Paraphrase: In which year did Andrew Johnson retire as a U.S Senator?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q8612 p:P39 ?s . ?s ps:P39 wd:Q13217683 . ?s pq:P582 ?value}