Question: What republic do we know whose out-of-school children number is under 340,000,000 and that borders Nigeria (Niger-Nigeria border) ?
Choices:
Bolivia
Germany
Niger
Colombia
Zimbabwe
Sierra Leone
France
Tunisia
Mozambique
Italy
Answer: Niger
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e <number_of_out-of-school_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "340000000"^^xsd:double ) . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Nigeria" . [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Niger–Nigeria border" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of out-of-school children
340000000
<
function: FilterConcept
dependencies: 1
inputs: republic
function: Find
inputs: Nigeria
function: Relate
dependencies: 3
inputs: shares border with
backward
function: QFilterStr
dependencies: 4
inputs: statement is subject of
Niger–Nigeria border
function: FilterConcept
dependencies: 5
inputs: republic
function: And
dependencies: 2
6
function: What
dependencies: 7