Question: Which area is smaller, Makati or Leuven?
Choices:
Makati
Dnipro
Utrecht
Wuppertal
Lyon
Fort Smith
Aachen
Bordeaux
Stuttgart
Halle (Saale)
Program:
function: Find
inputs: Makati
function: Find
inputs: Leuven
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Makati" .  } UNION { ?e <pred:name> "Leuven" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Makati