What is {spouse} of {John Denver} that is {end time} is {1993-0-0} ?
John Denver's wife who died in 1993.
Who is the spouse of John Denver, who died in 1993?
SELECT ?r WHERE { resource:John_Denver property:spouse ?j . ?j property:end_time ?j . FILTER ( CONTAINS ( YEAR ( ?j ) , '1993' ) ) . ?j property:spouse ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q105460> .
?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> <1993-0-0>
} 

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