Question: Which one has lower GDP (PPP), South Africa or Montenegro?
Choices:
Switzerland
Cambodia
South Sudan
Kiribati
South Africa
Benin
Weimar Republic
Samoa
Russian Soviet Federative Socialist Republic
Montenegro
Program:
function: Find
inputs: South Africa
function: Find
inputs: Montenegro
function: SelectBetween
dependencies: 0
1
inputs: GDP (PPP)
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South Africa" .  } UNION { ?e <pred:name> "Montenegro" .  } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Montenegro