What is {residence} of {Francis Drake} that is {end time} is {1594-0-0} ?
Frances Drake lived where in 1594?
Where did Francis Drake live in 1594?
SELECT ?o WHERE { resource:Francis_Drake property:residence ?h . ?h property:end_time ?n . ?h property:residence ?o . FILTER ( CONTAINS ( YEAR ( ?n ) , '1594' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q36517> .
?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> <1594-0-0>
} 

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