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