Question: How many Japanese prefectures either are located in Kyushu or have a Corporate Number (Japan) of 4000020210005?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" .  { ?e <Corporate_Number_(Japan)> ?pv . ?pv <pred:value> "4000020210005" .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Kyushu" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Corporate Number (Japan)
4000020210005
function: FilterConcept
dependencies: 1
inputs: prefecture of Japan
function: Find
inputs: Kyushu
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
function: Or
dependencies: 2
5
function: Count
dependencies: 6