Question: How many government structures have an inflation rate that is over 650 percent or a population that is more than 1000000?
Choices:
30
31
32
33
34
35
36
37
38
39
Answer: 38
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" .  { ?e <inflation_rate> ?pv . ?pv <pred:unit> "percentage" . ?pv <pred:value> ?v . FILTER ( ?v > "650"^^xsd:double ) .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "1000000"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: inflation rate
650 percentage
>
function: FilterConcept
dependencies: 1
inputs: form of government
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
1000000
>
function: FilterConcept
dependencies: 4
inputs: form of government
function: Or
dependencies: 2
5
function: Count
dependencies: 6