Question: How many Japan prefectures are located on terrain feature Honshu or whose FIPS 10-4 (countries and regions) is JA09?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" .  { ?e <located_on_terrain_feature> ?e_1 . ?e_1 <pred:name> "Honshu" .  } UNION { ?e <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "JA09" .  } }
Program:
function: Find
inputs: Honshu
function: Relate
dependencies: 0
inputs: located on terrain feature
backward
function: FilterConcept
dependencies: 1
inputs: prefecture of Japan
function: FindAll
function: FilterStr
dependencies: 3
inputs: FIPS 10-4 (countries and regions)
JA09
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
function: Or
dependencies: 2
5
function: Count
dependencies: 6