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