What is {spouse} of {Anna of Russia} that is {start time} is {1710-11-11} ?
When Anna of Russia got married on 11-11-1710, who was her groom?
Who did Anna of Russia marry on 1710-11-11?
SELECT ?e WHERE { ?l property:spouse ?e . ?l property:start_time ?y . FILTER ( CONTAINS ( YEAR ( ?y ) , '1710' ) ) . resource:Anna_of_Russia property:spouse ?l }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q160165> .
?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> <1710-11-11>
} 

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