Question: Which one has a higher GDP (PPP), Costa Rica or Guatemala?
Choices:
Cambodia
Weimar Republic
Costa Rica
Russian Soviet Federative Socialist Republic
Benin
Kiribati
Socialist Federal Republic of Yugoslavia
Switzerland
Samoa
Guatemala
Program:
function: Find
inputs: Guatemala
function: Find
inputs: Costa Rica
function: SelectBetween
dependencies: 0
1
inputs: GDP (PPP)
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guatemala" .  } UNION { ?e <pred:name> "Costa Rica" .  } ?e <GDP_(PPP)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Guatemala