What is {spouse} of {Gary Gygax} that is {end time} is {1980-1-1} ?
On January 1st, 1980, Gary Gygax divorced who?
Who did Gary Gygax divorce on January 1st in 1980?
SELECT ?a WHERE { ?a property:end_time ?k . ?a property:spouse ?a . FILTER ( CONTAINS ( YEAR ( ?k ) , '1980' ) ) . resource:Gary_Gygax property:spouse ?a }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q25550430> .
?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> <1980-1-1>
} 

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