What is {spouse} of {El Cid} that is {start time} is {1074-0-0} ?
Who was El Cid's spouse in 1074?
Who was the spouse of El Cid in the year 1074?
SELECT ?l WHERE { FILTER ( CONTAINS ( YEAR ( ?v ) , '1074' ) ) . resource:El_Cid property:spouse ?l . ?l property:start_time ?v . ?l property:spouse ?l }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q43958> .
?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> <1074-0-0>
} 

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