Question: Which has less population, Indore or Exeter whose WOEID is 19792?
Choices:
Cork
Kilkenny
Abidjan
Trieste
Bergen
Exeter
Kingston
Indore
Dundee
Chihuahua
Program:
function: Find
inputs: Indore
function: Find
inputs: Exeter
function: FilterStr
dependencies: 1
inputs: WOEID
19792
function: SelectBetween
dependencies: 0
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Indore" . } UNION { ?e <pred:name> "Exeter" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "19792" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Exeter