Question: Are there more people in Nagasaki or Saint John, Canada?
Choices:
Abidjan
Santo Domingo
Cork
Trieste
Kilkenny
Chihuahua
Nagasaki
Dundee
Saint John
Kingston
Answer: Nagasaki
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nagasaki" .  } UNION { ?e <pred:name> "Saint John" . ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .   } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Nagasaki
function: Find
inputs: Canada
function: Relate
dependencies: 1
inputs: country
backward
function: Find
inputs: Saint John
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: population
greater