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