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