What is {country} of {Honolulu} that is {end time} is {1894-7-4} ?
What ws the country that Honolulu became a part of on July 4, 1894?
What country was Honolulu part of on July 4, 1894?
SELECT ?h WHERE { FILTER ( CONTAINS ( YEAR ( ?w ) , '1894' ) ) . ?r property:end_time ?w . ?r property:country ?h . resource:Honolulu property:country ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q18094> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1894-7-4>
} 

SELECT ?obj WHERE { wd:Q18094 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1894')) }