Question: Which has less total reserves, Kazakhstan or Luxembourg (the one whose population is 387000)?
Choices:
Kazakhstan
Luxembourg
Cuba
Bulgaria
Finland
Greece
Lithuania
Kosovo
Tajikistan
Fiji
Answer: Luxembourg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kazakhstan" . } UNION { ?e <pred:name> "Luxembourg" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "387000"^^xsd:double . } ?e <total_reserves> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Kazakhstan
function: Find
inputs: Luxembourg
function: FilterNum
dependencies: 1
inputs: population
387000
=
function: SelectBetween
dependencies: 0
2
inputs: total reserves
less