What is {spouse} of {Alejandro Sanz} that is {start time} is {2012-5-26} ?
On May 26, 2012, who married Alejandro Sanz?
Who did Alejandro Sanz marry on May 26, 2012?
SELECT ?h WHERE { FILTER ( CONTAINS ( YEAR ( ?d ) , '2012' ) ) . ?c property:start_time ?d . ?c property:spouse ?h . resource:Alejandro_Sanz property:spouse ?c }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q276170> .
?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> <2012-5-26>
} 

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