Question: How many of Japan's prefectures contain the administrative division of San Juan (the one that shares border with Manila)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "San Juan" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Manila" .   }
Program:
function: Find
inputs: Manila
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: San Juan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: prefecture of Japan
function: Count
dependencies: 5