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