What is {partner} of {Johnny Depp} that is {end time} is {1993-1-1} ?
Who was Johnny Depp's partner until 1993?
SELECT ?obj WHERE { wd:Q37175 p:P451 ?s . ?s ps:P451 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1993')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37175> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P451> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1993-1-1>
} 

Who was Johnny Depp partnered with until 1993?