What is {spouse} of {Richard Branson} that is {start time} is {1989-0-0} ?
Give me the name of the person to whom Richard Branson married in the year 1989?
Who did Richard Branson marry in the year 1989?
SELECT ?l WHERE { resource:Richard_Branson property:spouse ?h . ?h property:start_time ?l . ?h property:spouse ?l . FILTER ( CONTAINS ( YEAR ( ?l ) , '1989' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q194419> .
?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> <1989-0-0>
} 

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