What is {spouse} of {Douglas Fairbanks} that is {end time} is {1936-1-10} ?
Who was the companion of Douglas Fairbanks until 1936-1-10?
Who was the spouse of Douglas Fairbanks until 1936-1-10?
SELECT ?y WHERE { ?b property:spouse ?y . ?b property:end_time ?x . resource:Douglas_Fairbanks property:spouse ?b . FILTER ( CONTAINS ( YEAR ( ?x ) , '1936' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q104127> .
?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> <1936-1-10>
} 

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