what is the {end time} for {Joseph Freiherr von Eichendorff} has {spouse} as {Aloysia von Eichendorff} ?
GIve the date Joseph Freiherr von Eichendorff and Aloysia von Eichendorff divorced.
When Joseph Freiherr von Eichendorff ended to be the spouse with Aloysia von Eichendorff?
SELECT ?x WHERE { ?i property:end_time ?x . ?i property:spouse resource:Aloysia_von_Eichendorff . resource:Joseph_Freiherr_von_Eichendorff property:spouse ?i }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q77204> .
?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/Q15990518> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q77204 p:P26 ?s . ?s ps:P26 wd:Q15990518 . ?s pq:P582 ?value}