Question: How many countries have a life expectancy greater than 14.3 year or that are different from Guam?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" .  { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v > "14.3"^^xsd:double ) .  } UNION { ?e_1 <different_from> ?e . ?e_1 <pred:name> "Guam" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: life expectancy
14.3 year
>
function: FilterConcept
dependencies: 1
inputs: country
function: Find
inputs: Guam
function: Relate
dependencies: 3
inputs: different from
forward
function: FilterConcept
dependencies: 4
inputs: country
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3