Question: Which ceremonial English county with NUTS code UKE2 borders Lancashire?
Choices:
Essex
West Midlands
Cumbria
Warwickshire
Merseyside
Northumberland
North Yorkshire
Staffordshire
Derbyshire
Greater Manchester
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: NUTS code
UKE2
function: FilterConcept
dependencies: 1
inputs: ceremonial county of England
function: Find
inputs: Lancashire
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: ceremonial county of England
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <NUTS_code> ?pv . ?pv <pred:value> "UKE2" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Lancashire" .  }
Answer: North Yorkshire