What is {spouse} of {Charles IX of France} that is {end time} is {1574-5-30} ?
What was the name of Charles IX of France's wife, who died on 5-30-1574?
Who is {spouse} of {Charles IX of France} whose {end time} is {1574-5-30} ?
SELECT ?f WHERE { ?y property:end_time ?c . resource:Charles_IX_of_France property:spouse ?y . ?y property:spouse ?f . FILTER ( CONTAINS ( YEAR ( ?c ) , '1574' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q134309> .
?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/P582> <1574-5-30>
} 

SELECT ?obj WHERE { wd:Q134309 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1574')) }