Question: Between Swansea and Winchester (WOEID 40611), which has a smaller populace?
Choices:
Bergen
Swansea
Trieste
Dundee
Winchester
Abidjan
Cork
Kingston
Chihuahua
Kilkenny
Program:
function: Find
inputs: Swansea
function: Find
inputs: Winchester
function: FilterStr
dependencies: 1
inputs: WOEID
40611
function: SelectBetween
dependencies: 0
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Swansea" . } UNION { ?e <pred:name> "Winchester" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "40611" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Winchester