What is {spouse} of {Ridley Scott} that is {end time} is {1975-0-0} ?
Which  was the spouse of Ridley Scott prior to their divorce in 1975?
Who was the spouse of Ridley Scott prior to their divorce in 1975?
SELECT ?q WHERE { FILTER ( CONTAINS ( YEAR ( ?n ) , '1975' ) ) . ?b property:spouse ?q . resource:Ridley_Scott property:spouse ?b . ?b property:end_time ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q56005> .
?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> <1975-0-0>
} 

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