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