Question: Which ceremonial county of England that shares a border with Devon (whose NUTS code is UKK43) has the smallest area?
Choices:
Essex
Staffordshire
Cumbria
Norfolk
Dorset
Cornwall
Warwickshire
Northumberland
West Midlands
Somerset
Answer: Dorset
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Devon" . ?e_1 <NUTS_code> ?pv_1 . ?pv_1 <pred:value> "UKK43" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Devon
function: FilterStr
dependencies: 0
inputs: NUTS code
UKK43
function: Relate
dependencies: 1
inputs: shares border with
forward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: SelectAmong
dependencies: 3
inputs: area
smallest