What is {spouse} of {Pamela Anderson} that is {start time} is {1995-2-19} ?
what was Pamela Anderson married in  1995?
To Whom was Pamela Anderson married in the year 1995?
SELECT ?m WHERE { resource:Pamela_Anderson property:spouse ?c . ?c property:start_time ?c . FILTER ( CONTAINS ( YEAR ( ?c ) , '1995' ) ) . ?c property:spouse ?m }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q83325> .
?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> <1995-2-19>
} 

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