Question: Is there a greater unemployment rate in Lithuania or in Bulgaria?
Choices:
Bulgaria
Finland
Tajikistan
Greece
Lithuania
Cuba
Kosovo
Luxembourg
Fiji
Kazakhstan
Program:
function: Find
inputs: Lithuania
function: Find
inputs: Bulgaria
function: SelectBetween
dependencies: 0
1
inputs: unemployment rate
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lithuania" .  } UNION { ?e <pred:name> "Bulgaria" .  } ?e <unemployment_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bulgaria