Question: What is the number of metropolitan boroughs that has the capital Bury (which has a 30.1 square kilometre area)
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> "metropolitan borough" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Bury" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "30.1"^^xsd:double .   }
Program:
function: Find
inputs: Bury
function: FilterNum
dependencies: 0
inputs: area
30.1 square kilometre
=
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: Count
dependencies: 3
Answer: 1