Question: Which area is larger, Lagos or Baghdad?
Choices:
Chihuahua
Dundee
Trieste
Kingston
Santo Domingo
Lagos
Abidjan
Cork
Bergen
Kilkenny
Answer: Lagos
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lagos" .  } UNION { ?e <pred:name> "Baghdad" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lagos
function: Find
inputs: Baghdad
function: SelectBetween
dependencies: 0
1
inputs: area
greater