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