Question: How many unitary states are there where the life expectancy is greater than 35 years?
Choices: 9
10
11
12
13
14
15
16
17
18
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 > "35"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: life expectancy
35 year
>
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Count
dependencies: 2
Answer: 15