Question: The administrative division Bournemouth, corresponding to ISO 3166-2 code GB-BMH, is located in which ceremonial English county ?
Choices:
Northamptonshire
West Midlands
Warwickshire
Devon
Cumbria
Northumberland
Somerset
Dorset
Essex
Cambridgeshire
Answer: Dorset
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Bournemouth" . ?e_1 <ISO_3166-2_code> ?pv . ?pv <pred:value> "GB-BMH" .   }
Program:
function: Find
inputs: Bournemouth
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
GB-BMH
function: Relate
dependencies: 1
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: What
dependencies: 3