Question: How many Japanese prefectures border Dresden, population 485132?
Choices: 0
1
2
3
4
5
6
7
8
9
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> "Dresden" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "485132"^^xsd:double .   }
Program:
function: Find
inputs: Dresden
function: FilterNum
dependencies: 0
inputs: population
485132
=
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: prefecture of Japan
function: Count
dependencies: 3
Answer: 0