What is {currency} of {Bonaire} that is {end time} is {2011-1-1} ?
On January 1, 2011, what was the currency of Bonaire?
What was the Bonaire currency in January 1, 2011?
SELECT ?k WHERE { resource:Bonaire property:currency ?u . ?u property:currency ?k . ?u property:end_time ?p . FILTER ( CONTAINS ( YEAR ( ?p ) , '2011' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q25396> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P38> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2011-1-1>
} 

SELECT ?obj WHERE { wd:Q25396 p:P38 ?s . ?s ps:P38 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2011')) }