Question: Does Somalia or Uganda have a bigger nominal GDP per capita?
Choices:
Namibia
Tunisia
Bolivia
Sierra Leone
Colombia
Germany
Uganda
Somalia
Mozambique
Zimbabwe
Program:
function: Find
inputs: Somalia
function: Find
inputs: Uganda
function: SelectBetween
dependencies: 0
1
inputs: nominal GDP per capita
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Somalia" .  } UNION { ?e <pred:name> "Uganda" .  } ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Uganda