What is the {national economy} for {currency} of {Japanese yen}
what is the country name using the currency Yen?
What country uses the currency of Japanese Yen?
SELECT DISTINCT ?h WHERE { ?h property:currency resource:Japanese_yen . ?h rdf:type ontology:national_economy }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?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> <http://wikidata.dbpedia.org/resource/Q8146> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q6456916> } 
 select distinct ?sbj where { ?sbj wdt:P38 wd:Q8146 . ?sbj wdt:P31 wd:Q6456916 } 