Question: Medford, which is 66.73933 square kilometres in size, is the capital of how many Oregon counties?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Oregon" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Medford" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "66.73933"^^xsd:double .   }
Program:
function: Find
inputs: Medford
function: FilterNum
dependencies: 0
inputs: area
66.73933 square kilometre
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: county of Oregon
function: Count
dependencies: 3
Answer: 1