What is {spouse} of {Mike Tyson} that is {end time} is {1989-2-14} ?
Married to until 2/14/89, what is the name of Mike Tyson's ex-wife?
What is the name of Mike Tyson's ex-wife that he was married to until 2/14/89?
SELECT ?r WHERE { ?s property:spouse ?r . resource:Mike_Tyson property:spouse ?s . FILTER ( CONTAINS ( YEAR ( ?n ) , '1989' ) ) . ?s property:end_time ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q79031> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1989-2-14>
} 

SELECT ?obj WHERE { wd:Q79031 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1989')) }