Question: How many non-metro districts are there that report the population of below 400,000 or have Ravenna as the capital ?
Choices:
12
13
14
15
16
17
18
19
20
21
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
400000
<
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: Ravenna
function: Relate
dependencies: 3
inputs: capital
backward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan district
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "400000"^^xsd:double ) .  } UNION { ?e <capital> ?e_1 . ?e_1 <pred:name> "Ravenna" .  } }
Answer: 17