Question: How many republics have a GDP (PPP) that is higher than 270000000000 Geary–Khamis dollars and a count of out-of-school children that is not 2900000?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e <GDP_(PPP)> ?pv . ?pv <pred:unit> "Geary–Khamis dollar" . ?pv <pred:value> ?v . FILTER ( ?v > "270000000000"^^xsd:double ) . ?e <number_of_out-of-school_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 != "2900000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: GDP (PPP)
270000000000 Geary–Khamis dollar
>
function: FilterConcept
dependencies: 1
inputs: republic
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of out-of-school children
2900000
!=
function: FilterConcept
dependencies: 4
inputs: republic
function: And
dependencies: 2
5
function: Count
dependencies: 6