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