Question: Ghana or Nepal- Which has less GDP per capita
Choices:
Cambodia
Ghana
Switzerland
Samoa
Nepal
Socialist Federal Republic of Yugoslavia
Benin
Russian Soviet Federative Socialist Republic
Weimar Republic
South Sudan
Program:
function: Find
inputs: Ghana
function: Find
inputs: Nepal
function: SelectBetween
dependencies: 0
1
inputs: nominal GDP per capita
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ghana" .  } UNION { ?e <pred:name> "Nepal" .  } ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Nepal