Question: Does Azerbaijan or Ethiopia have the higher nominal GDP per capita?
Choices:
Azerbaijan
Kiribati
Samoa
Ethiopia
Socialist Federal Republic of Yugoslavia
Cambodia
Russian Soviet Federative Socialist Republic
South Sudan
Weimar Republic
Benin
Program:
function: Find
inputs: Azerbaijan
function: Find
inputs: Ethiopia
function: SelectBetween
dependencies: 0
1
inputs: nominal GDP per capita
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Azerbaijan" .  } UNION { ?e <pred:name> "Ethiopia" .  } ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Azerbaijan