what is the {end time} for {Usher} has {spouse} as {Tameka Foster} ?
What date did Usher and Tameka Foster divorce?
When did Usher and Tameka Foster divorce?
SELECT ?g WHERE { ?x property:spouse resource:Tameka_Foster . resource:Usher property:spouse ?x . ?x property:end_time ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165911> .
?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/Q3788039> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q165911 p:P26 ?s . ?s ps:P26 wd:Q3788039 . ?s pq:P582 ?value}