Question: Which has fewer people, Carlisle (the one whose WOEID is 15178) or Mogadishu?
Choices:
Kilkenny
Carlisle
Trieste
Dundee
Kingston
Mogadishu
Abidjan
Bergen
Santo Domingo
Chihuahua
Answer: Carlisle
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carlisle" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "15178" . } UNION { ?e <pred:name> "Mogadishu" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Carlisle
function: FilterStr
dependencies: 0
inputs: WOEID
15178
function: Find
inputs: Mogadishu
function: SelectBetween
dependencies: 1
2
inputs: population
less