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