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