Question: How many counties in Texas have an area that is less than 5000000 square kilometers?
Choices: 15
16
17
18
19
20
21
22
23
24
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" . ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "5000000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
5000000 square kilometre
<
function: FilterConcept
dependencies: 1
inputs: county of Texas
function: Count
dependencies: 2
Answer: 17