Question: Which one has the greater area, Thrissur or Laval?
Choices:
Kingston
Cork
Laval
Bergen
Thrissur
Abidjan
Trieste
Kilkenny
Dundee
Chihuahua
Program:
function: Find
inputs: Thrissur
function: Find
inputs: Laval
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Thrissur" .  } UNION { ?e <pred:name> "Laval" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Laval