Question: How many historical countries use the Japanese yen as their currency or are an ethnic community of African Americans?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Japanese yen
function: Relate
dependencies: 0
inputs: currency
backward
function: FilterConcept
dependencies: 1
inputs: historical country
function: Find
inputs: African Americans
function: Relate
dependencies: 3
inputs: ethnic group
backward
function: FilterConcept
dependencies: 4
inputs: historical country
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" .  { ?e <currency> ?e_1 . ?e_1 <pred:name> "Japanese yen" .  } UNION { ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "African Americans" .  } }
Answer: 2