Question: Which has a larger area, Dijon or Lille?
Choices:
Lyon
Dnipro
Wuppertal
Aachen
Bordeaux
Dijon
Stuttgart
Lille
Fort Smith
Halle (Saale)
Program:
function: Find
inputs: Dijon
function: Find
inputs: Lille
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dijon" .  } UNION { ?e <pred:name> "Lille" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dijon