Question: Does the Cambridgeshire that borders Lincolnshire have a lower population, or does Cumbria?
Choices: Norfolk
Northumberland
Warwickshire
East Riding of Yorkshire
Cumbria
Derbyshire
Essex
Cambridgeshire
Somerset
Staffordshire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cambridgeshire" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Lincolnshire" .   } UNION { ?e <pred:name> "Cumbria" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Lincolnshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Cambridgeshire
function: And
dependencies: 1
2
function: Find
inputs: Cumbria
function: SelectBetween
dependencies: 3
4
inputs: population
less
Answer: Cumbria