What is {spouse} of {Carlos Saura} that is {start time} is {2006-0-0} ?
Whats the name of Carlos Saura's wife whom he married in 2006?
what is spouse of Carlos Saura that is start time is 2006?
SELECT ?r WHERE { resource:Carlos_Saura property:spouse ?v . ?v property:start_time ?y . FILTER ( CONTAINS ( YEAR ( ?y ) , '2006' ) ) . ?v property:spouse ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q295855> .
?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> <2006-0-0>
} 

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