Question: How many state who have 240000 out-of-school children or Gatineau's twinned administrative body?
Choices:
21
22
23
24
25
26
27
28
29
30
Answer: 21
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" .  { ?e <number_of_out-of-school_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "240000"^^xsd:double ) .  } UNION { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Gatineau" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of out-of-school children
240000
!=
function: FilterConcept
dependencies: 1
inputs: state
function: Find
inputs: Gatineau
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 4
inputs: state
function: Or
dependencies: 2
5
function: Count
dependencies: 6