What is {spouse} of {Paavo Haavikko} that is {end time} is {2008-10-6} ?
Who was Paavo Haavikko's wife, who died on october 10, 2008?
Name the spouse of Paavo Haavikko, who passed away on October 10, 2008.
SELECT ?t WHERE { resource:Paavo_Haavikko property:spouse ?f . ?f property:spouse ?t . ?f property:end_time ?l . FILTER ( CONTAINS ( YEAR ( ?l ) , '2008' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q444876> .
?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> <2008-10-6>
} 

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