what is the {end time} for {Erik Erikson} has {spouse} as {Joan Erikson} ?
When did Erik Erikson separate from his spouse Joan Erikson?
when is the {end time} for {Erik Erikson} who has {spouse} as {Joan Erikson} ?
SELECT ?m WHERE { ?y property:spouse resource:Joan_Erikson . ?y property:end_time ?m . resource:Erik_Erikson property:spouse ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q58074> .
?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/Q3179577> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q58074 p:P26 ?s . ?s ps:P26 wd:Q3179577 . ?s pq:P582 ?value}