Question: What number of unitary states have a life expectancy of more than 12.9 years?
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" . ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v > "12.9"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: life expectancy
12.9 year
>
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Count
dependencies: 2