What is {spouse} of {Stone Cold Steve Austin} that is {end time} is {2003-2-5} ?
What was Stone Cold Steve Austin's wife's name up to February 5, 2003?
Who was Stone Cold Steve Austin married to until February 5, 2003?
SELECT ?o WHERE { FILTER ( CONTAINS ( YEAR ( ?x ) , '2003' ) ) . resource:Stone_Cold_Steve_Austin property:spouse ?j . ?j property:end_time ?x . ?j property:spouse ?o }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44313> .
?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> <2003-2-5>
} 

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