Question: How many prefectures of Japan share a border with Gifu Prefecture or have the Japan Corporate Number 4000020270008?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Gifu Prefecture
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: prefecture of Japan
function: FindAll
function: FilterStr
dependencies: 3
inputs: Corporate Number (Japan)
4000020270008
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
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> "prefecture of Japan" .  { ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Gifu Prefecture" .  } UNION { ?e <Corporate_Number_(Japan)> ?pv . ?pv <pred:value> "4000020270008" .  } }
Answer: 3