Question: What is the number of Japanese prefectures that have Japan as a country or that are an administrative division of the Kansai region?
Choices:
12
13
14
15
16
17
18
19
20
21
Program:
function: Find
inputs: Japan
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: prefecture of Japan
function: Find
inputs: Kansai region
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
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 <country> ?e_1 . ?e_1 <pred:name> "Japan" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Kansai region" .  } }
Answer: 16