Question: Are there less people living in Cambridgeshire (the one whose WOEID is 12602140) or Kent (the one that contains River Thames)?
Choices: Kent
Cumbria
Derbyshire
West Midlands
Somerset
Staffordshire
Essex
Warwickshire
Cambridgeshire
Northumberland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cambridgeshire" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "12602140" . } UNION { ?e <pred:name> "Kent" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "River Thames" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Cambridgeshire
function: FilterStr
dependencies: 0
inputs: WOEID
12602140
function: Find
inputs: River Thames
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Kent
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
less
Answer: Cambridgeshire