Question: Between two places—Belarus or Somalia—which of the two has the higher rate of unemployment?
Choices:
Germany
Somalia
Bolivia
Tunisia
Mozambique
Belarus
Italy
Colombia
Namibia
Sierra Leone
Program:
function: Find
inputs: Belarus
function: Find
inputs: Somalia
function: SelectBetween
dependencies: 0
1
inputs: unemployment rate
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Belarus" .  } UNION { ?e <pred:name> "Somalia" .  } ?e <unemployment_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Somalia