Question: Which has the bigger population, Cambridgeshire, with a WOEID of 12602140, or Northumberland?
Choices:
Derbyshire
Somerset
Cambridgeshire
Norfolk
Northumberland
Cumbria
Staffordshire
West Midlands
Essex
Warwickshire
Answer: Cambridgeshire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cambridgeshire" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "12602140" . } UNION { ?e <pred:name> "Northumberland" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cambridgeshire
function: FilterStr
dependencies: 0
inputs: WOEID
12602140
function: Find
inputs: Northumberland
function: SelectBetween
dependencies: 1
2
inputs: population
greater