Question: Which has less area, West Midlands that borders Staffordshire or East Sussex?
Choices: East Riding of Yorkshire
Northumberland
Staffordshire
Derbyshire
West Midlands
Essex
Somerset
Norfolk
East Sussex
Warwickshire
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "West Midlands" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Staffordshire" .   } UNION { ?e <pred:name> "East Sussex" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Staffordshire
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: West Midlands
function: And
dependencies: 1
2
function: Find
inputs: East Sussex
function: SelectBetween
dependencies: 3
4
inputs: area
less
Answer: West Midlands