what is the {end time} for {Eino Kaila} has {spouse} as {Anna Snellman-Kaila} ?
When did Anna Snellman-Kaila die?
What was the end time for Eino Kaila's spouse Anna Snellman-Kaila?
SELECT ?r WHERE { resource:Eino_Kaila property:spouse ?t . ?t property:end_time ?r . ?t property:spouse resource:Anna_Snellman-Kaila }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q670103> .
?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> <http://wikidata.dbpedia.org/resource/Q11851614> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q670103 p:P26 ?s . ?s ps:P26 wd:Q11851614 . ?s pq:P582 ?value}