what is the {end time} for {Elizabeth Montgomery} has {spouse} as {Robert Foxworth} ?
In which year Elizabeth Montgomery took divorce with Robert Foxworth?
When was Elizabeth Montgomery no longer married to Robert Foxworth?
SELECT ?l WHERE { ?b property:end_time ?l . resource:Elizabeth_Montgomery property:spouse ?b . ?b property:spouse resource:Robert_Foxworth }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q233843> .
?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/Q2063709> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q233843 p:P26 ?s . ?s ps:P26 wd:Q2063709 . ?s pq:P582 ?value}