Question: which was the end time leland stanford who's position held in united states senator?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q382109 p:P39 ?s . ?s ps:P39 wd:Q13217683 . ?s pq:P582 ?value}