What is {spouse} of {Max Ernst} that is {start time} is {1946-1-1} ?
Name the spouse of Max Ernst born on 1-1-1946.
What spouse of Max Ernst has a birthdate of 1-1-1946?
SELECT ?u WHERE { resource:Max_Ernst property:spouse ?m . FILTER ( CONTAINS ( YEAR ( ?d ) , '1946' ) ) . ?m property:spouse ?u . ?m property:start_time ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q154842> .
?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> <1946-1-1>
} 

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