Question: Does Exeter (the one whose WOEID is 19792) or Nelson (the one that locates in the continent of Oceania) have lesser population ?
Choices: Trieste
Kingston
Nelson
Santo Domingo
Dundee
Kilkenny
Bergen
Cork
Chihuahua
Abidjan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Exeter" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "19792" . } UNION { ?e <pred:name> "Nelson" . ?e <continent> ?e_1 . ?e_1 <pred:name> "Oceania" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Exeter
function: FilterStr
dependencies: 0
inputs: WOEID
19792
function: Find
inputs: Oceania
function: Relate
dependencies: 2
inputs: continent
backward
function: Find
inputs: Nelson
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
less
Answer: Nelson