Question: How many islands include Kanagawa Prefecture as a part or that are located in the Pacific Ocean?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Kanagawa Prefecture
function: Relate
dependencies: 0
inputs: has part
backward
function: FilterConcept
dependencies: 1
inputs: island
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 3
inputs: located on terrain feature
backward
function: FilterConcept
dependencies: 4
inputs: island
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> "island" .  { ?e <has_part> ?e_1 . ?e_1 <pred:name> "Kanagawa Prefecture" .  } UNION { ?e <located_on_terrain_feature> ?e_1 . ?e_1 <pred:name> "Pacific Ocean" .  } }
Answer: 5