Question: Which has a higher unemployment rate, Indonesia or Colombia?
Choices:
France
Zimbabwe
Indonesia
Mozambique
Colombia
Germany
Bolivia
Tunisia
Sierra Leone
Italy
Program:
function: Find
inputs: Indonesia
function: Find
inputs: Colombia
function: SelectBetween
dependencies: 0
1
inputs: unemployment rate
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Indonesia" .  } UNION { ?e <pred:name> "Colombia" .  } ?e <unemployment_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Colombia