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