what is the {end time} for {Liza Minnelli} has {spouse} as {David Gest} ?
On what date did Liza Minnelli and her husband get divorced?
When did Liza Minnelli and her husband David Gest get divorced?
SELECT ?e WHERE { resource:Liza_Minnelli property:spouse ?n . ?n property:spouse resource:David_Gest . ?n property:end_time ?e }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q14441> .
?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/Q10264401> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q14441 p:P26 ?s . ?s ps:P26 wd:Q10264401 . ?s pq:P582 ?value}