Question: Which area is larger, Lagos or Baghdad?
Choices:
Chihuahua
Dundee
Trieste
Kingston
Santo Domingo
Lagos
Abidjan
Cork
Bergen
Kilkenny
Program:
function: Find
inputs: Lagos
function: Find
inputs: Baghdad
function: SelectBetween
dependencies: 0
1
inputs: area
greater
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
Answer: Lagos