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