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