What is {spouse} of {Jules Massenet} that is {start time} is {1866-0-0} ?
Who was Jules Massenet married to in 1866?
Who was Jules Massenet's spouse at the start of 1866?
SELECT ?c WHERE { FILTER ( CONTAINS ( YEAR ( ?r ) , '1866' ) ) . ?c property:spouse ?c . ?c property:start_time ?r . resource:Jules_Massenet property:spouse ?c }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q194436> .
?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/P580> <1866-0-0>
} 

SELECT ?obj WHERE { wd:Q194436 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1866')) }