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