What is {spouse} of {Louis XIV of France} that is {start time} is {1660-6-9} ?
Give me the name of hte person Louis XIV of France married on June 9, 1660.
Who did Louis XIV of France marry on June 9, 1660?
SELECT ?l WHERE { ?z property:start_time ?e . FILTER ( CONTAINS ( YEAR ( ?e ) , '1660' ) ) . resource:Louis_XIV_of_France property:spouse ?z . ?z property:spouse ?l }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7742> .
?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> <1660-6-9>
} 

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