Question: What are the number of counties of Illinois whose area is less than 240000 square kilometre ?
Choices:
13
14
15
16
17
18
19
20
21
22
Answer: 17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" . ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "240000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
240000 square kilometre
<
function: FilterConcept
dependencies: 1
inputs: county of Illinois
function: Count
dependencies: 2