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