Question: Which area is larger, Grenada or Kazakhstan?
Choices:
Greece
Kosovo
Cuba
Fiji
Sweden
Tajikistan
Bulgaria
Finland
Kazakhstan
Lithuania
Program:
function: Find
inputs: Grenada
function: Find
inputs: Kazakhstan
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Grenada" .  } UNION { ?e <pred:name> "Kazakhstan" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kazakhstan