Question: Which one has more population, Canterbury or Tabriz?
Choices:
Chihuahua
Kingston
Cork
Kilkenny
Canterbury
Dundee
Santo Domingo
Tabriz
Trieste
Abidjan
Program:
function: Find
inputs: Canterbury
function: Find
inputs: Tabriz
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Canterbury" .  } UNION { ?e <pred:name> "Tabriz" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tabriz