Question: Which has the largest total reserves among the republic where the population is under 670000?
Choices:
Tunisia
Sierra Leone
Seychelles
Italy
Germany
Bolivia
Mozambique
Zimbabwe
Namibia
Malawi
Answer: Namibia
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 < "670000"^^xsd:double ) . ?e <total_reserves> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
670000
<
function: FilterConcept
dependencies: 1
inputs: republic
function: SelectAmong
dependencies: 2
inputs: total reserves
largest