What is {spouse} of {Johnny Cash} that is {end time} is {1966-0-0} ?
Who was Johnny Cash's spouse that died in 1966?
Who is the spouse of Johnny Cash that died in 1966?
SELECT ?b WHERE { ?w property:spouse ?b . ?w property:end_time ?v . FILTER ( CONTAINS ( YEAR ( ?v ) , '1966' ) ) . resource:Johnny_Cash property:spouse ?w }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42775> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1966-0-0>
} 

SELECT ?obj WHERE { wd:Q42775 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1966')) }