Question: Between Samoa and South Africa, which one has greater nominal GDP per capita?
Choices: Kiribati
Socialist Federal Republic of Yugoslavia
Samoa
Weimar Republic
Benin
Switzerland
South Sudan
South Africa
People's Republic of China
Cambodia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Samoa" .  } UNION { ?e <pred:name> "South Africa" .  } ?e <nominal_GDP_per_capita> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Samoa
function: Find
inputs: South Africa
function: SelectBetween
dependencies: 0
1
inputs: nominal GDP per capita
greater
Answer: South Africa