What is {spouse} of {Fyodor Tyutchev} that is {end time} is {1838-8-27} ?
Who was Fyodor Tyutchev's spouse prior to August 1838?
Who was the spouse of Fyodor Tyutchev until August 27, 1838?
SELECT ?g WHERE { ?t property:spouse ?g . FILTER ( CONTAINS ( YEAR ( ?z ) , '1838' ) ) . resource:Fyodor_Tyutchev property:spouse ?t . ?t property:end_time ?z }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37217> .
?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> <1838-8-27>
} 

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