Question: Which country has the currency Japanese yen?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P38 wd:Q8146 . ?sbj wdt:P31 wd:Q6256 } 
Answer: Japan