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