what is the {end time} for {Faye Dunaway} has {spouse} as {Terry O'Neill} ?
What year did Faye Dunaway die while being married to Terry O'Neill?
When did Faye Dunaway die who was married to Terry O'Neill?
SELECT ?p WHERE { ?m property:spouse resource:Terry_O'Neill . ?m property:end_time ?p . resource:Faye_Dunaway property:spouse ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q168721> .
?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/Q2405734> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q168721 p:P26 ?s . ?s ps:P26 wd:Q2405734 . ?s pq:P582 ?value}