Question: How many country issued the citizenship to Jonathan Pryce, or, report the life expectancy over 75 years ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" .  { ?e_1 <country_of_citizenship> ?e . ?e_1 <pred:name> "Jonathan Pryce" .  } UNION { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v > "75"^^xsd:double ) .  } }
Program:
function: Find
inputs: Jonathan Pryce
function: Relate
dependencies: 0
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 1
inputs: country
function: FindAll
function: FilterNum
dependencies: 3
inputs: life expectancy
75 year
>
function: FilterConcept
dependencies: 4
inputs: country
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3