What is {spouse} of {Ted Turner} that is {end time} is {2001-0-0} ?
Who was Ted Turner's wife in 2001
Who was the spouse of Ted Turner in 2001?
SELECT ?r WHERE { ?q property:end_time ?z . ?q property:spouse ?r . FILTER ( CONTAINS ( YEAR ( ?z ) , '2001' ) ) . resource:Ted_Turner property:spouse ?q }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q193368> .
?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> <2001-0-0>
} 

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