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