What is {spouse} of {Robert Shaw} that is {end time} is {1975-1-1} ?
What was the name of Robert Shaws wife until 1975?
Who was Robert Shaw married to until 1975?
SELECT ?h WHERE { ?d property:spouse ?h . ?d property:end_time ?k . resource:Robert_Shaw property:spouse ?d . FILTER ( CONTAINS ( YEAR ( ?k ) , '1975' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q313727> .
?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-1-1>
} 

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