Question: How many unitary states belonging to the EU have under 880000 out-of-school children?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" . ?e <number_of_out-of-school_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "880000"^^xsd:double ) . ?e_1 <has_part> ?e . ?e_1 <pred:name> "European Union" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of out-of-school children
880000
<
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Find
inputs: European Union
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: unitary state
function: And
dependencies: 2
5
function: Count
dependencies: 6