What is {spouse} of {Ada Lovelace} that is {end time} is {1852-11-27} ?
At the time of her death on November 27, 1852, Ada Lovelace was married to what man?
Who was Ada Lovelace's husband when she died on November 27, 1852?
SELECT ?w WHERE { ?l property:spouse ?w . ?l property:end_time ?a . resource:Ada_Lovelace property:spouse ?l . FILTER ( CONTAINS ( YEAR ( ?a ) , '1852' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7259> .
?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> <1852-11-27>
} 

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