Question: Which is bigger: Northamptonshire or Cambridgeshire (the one that shares border with Lincolnshire)?
Choices: West Midlands
Northamptonshire
Norfolk
Derbyshire
Cumbria
Staffordshire
Somerset
Warwickshire
Essex
Cambridgeshire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northamptonshire" .  } UNION { ?e <pred:name> "Cambridgeshire" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Lincolnshire" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Northamptonshire
function: Find
inputs: Lincolnshire
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Cambridgeshire
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
Answer: Cambridgeshire