What is {position held} of {Hubert Humphrey} that is {end time} is {1964-0-0} ?
What job did Hubert Humphrey have that ended in 1964?
What position did Hubert Humphrey hold that ended in 1964?
SELECT ?v WHERE { resource:Hubert_Humphrey property:position_held ?e . ?e property:position_held ?v . ?e property:end_time ?l . FILTER ( CONTAINS ( YEAR ( ?l ) , '1964' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q209989> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1964-0-0>
} 

SELECT ?obj WHERE { wd:Q209989 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1964')) }