Question: Which area is smaller, Truro or Hanoi?
Choices:
Kilkenny
Abidjan
Cork
Trieste
Kingston
Santo Domingo
Truro
Chihuahua
Bergen
Hanoi
Program:
function: Find
inputs: Truro
function: Find
inputs: Hanoi
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Truro" .  } UNION { ?e <pred:name> "Hanoi" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Truro