What is {residence} of {Hildegard Knef} that is {end time} is {2002-1-1} ?
Can you tell me where the hard knef resided up until January 1st, 2001
Can you tell me where Hildegarf Knef resided up until January 1st, 2001?
SELECT ?b WHERE { ?n property:residence ?b . FILTER ( CONTAINS ( YEAR ( ?c ) , '2002' ) ) . ?n property:end_time ?c . resource:Hildegard_Knef property:residence ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57604> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2002-1-1>
} 

SELECT ?obj WHERE { wd:Q57604 p:P551 ?s . ?s ps:P551 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2002')) }