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