Question: Which ceremonial English county bordering Hertfordshire is designated by NUTS code UKH12?
Choices:
Derbyshire
Greater London
Cambridgeshire
Essex
West Midlands
Northumberland
Cumbria
Somerset
Staffordshire
Warwickshire
Program:
function: Find
inputs: Hertfordshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: ceremonial county of England
function: FindAll
function: FilterStr
dependencies: 3
inputs: NUTS code
UKH12
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_1 <shares_border_with> ?e . ?e_1 <pred:name> "Hertfordshire" .  ?e <NUTS_code> ?pv . ?pv <pred:value> "UKH12" .  }
Answer: Cambridgeshire