Question: Which palce has greater total reserves, Norway or Costa Rica?
Choices:
South Sudan
Samoa
Benin
Norway
Weimar Republic
Switzerland
Socialist Federal Republic of Yugoslavia
Costa Rica
Kiribati
Russian Soviet Federative Socialist Republic
Program:
function: Find
inputs: Costa Rica
function: Find
inputs: Norway
function: SelectBetween
dependencies: 0
1
inputs: total reserves
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Costa Rica" .  } UNION { ?e <pred:name> "Norway" .  } ?e <total_reserves> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Norway