Question: Is there a greater area in Madurai or in Chittagong?
Choices:
Kingston
Cork
Abidjan
Trieste
Bergen
Madurai
Dundee
Chihuahua
Chittagong
Santo Domingo
Program:
function: Find
inputs: Madurai
function: Find
inputs: Chittagong
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Madurai" .  } UNION { ?e <pred:name> "Chittagong" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chittagong