What is {spouse} of {Cher} that is {end time} is {1979-1-1} ?
Who was the life partner of Cher in 1979? Give the title of the grant gotten by Walter Gropius in 1961?
Who was the spouse of Cher in 1979?
SELECT ?w WHERE { FILTER ( CONTAINS ( YEAR ( ?f ) , '1979' ) ) . ?f property:spouse ?w . ?f property:end_time ?f . resource:Cher_Bono property:spouse ?f }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12003> .
?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> <1979-1-1>
} 

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