Question: How many market towns are located in Derbyshire ose area is 2625 square kilometre) and have a local dialing code of 01267?
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> "market town" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Derbyshire" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "2625"^^xsd:double .  ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01267" .  }
Program:
function: Find
inputs: Derbyshire
function: FilterNum
dependencies: 0
inputs: area
2625 square kilometre
=
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: market town
function: FindAll
function: FilterStr
dependencies: 4
inputs: local dialing code
01267
function: FilterConcept
dependencies: 5
inputs: market town
function: And
dependencies: 3
6
function: Count
dependencies: 7