What is {spouse} of {Grover Cleveland} that is {start time} is {1886-6-2} ?
On June 2, 1886, who did Grover Cleveland marry?
Who married Grover Cleveland on June 2, 1886?
SELECT ?k WHERE { resource:Grover_Cleveland property:spouse ?o . ?o property:start_time ?a . ?o property:spouse ?k . FILTER ( CONTAINS ( YEAR ( ?a ) , '1886' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35171> .
?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> <1886-6-2>
} 

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