Question: Does Moncton or Kelowna have a bigger population?
Choices:
Kelowna
Trieste
Santo Domingo
Dundee
Moncton
Kilkenny
Abidjan
Kingston
Chihuahua
Bergen
Program:
function: Find
inputs: Moncton
function: Find
inputs: Kelowna
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Moncton" .  } UNION { ?e <pred:name> "Kelowna" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kelowna