Question: How many sovereign states have a total fertility rate not equal to 4.0 and have an inflation rate greater than 3400 percentage?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <total_fertility_rate> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "4.0"^^xsd:double ) . ?e <inflation_rate> ?pv_1 . ?pv_1 <pred:unit> "percentage" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 > "3400"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: total fertility rate
4.0
!=
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: FindAll
function: FilterNum
dependencies: 3
inputs: inflation rate
3400 percentage
>
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: And
dependencies: 2
5
function: Count
dependencies: 6