Question: How many governmental forms do we know whose out-of-school children number is less than 310,000 and whose inflation rate is greater than 3,300 percent ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" . ?e <number_of_out-of-school_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "310000"^^xsd:double ) . ?e <inflation_rate> ?pv_1 . ?pv_1 <pred:unit> "percentage" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 > "3300"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of out-of-school children
310000
<
function: FilterConcept
dependencies: 1
inputs: form of government
function: FindAll
function: FilterNum
dependencies: 3
inputs: inflation rate
3300 percentage
>
function: FilterConcept
dependencies: 4
inputs: form of government
function: And
dependencies: 2
5
function: Count
dependencies: 6