Question: For Birmingham (the one whose NUTS code is UKG31), what ceremonial county of England has the capital?
Choices:
Derbyshire
Suffolk
Essex
Northumberland
Warwickshire
Somerset
Cumbria
West Midlands
Staffordshire
Birmingham
Answer: West Midlands
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <capital> ?e_1 . ?e_1 <pred:name> "Birmingham" . ?e_1 <NUTS_code> ?pv . ?pv <pred:value> "UKG31" .   }
Program:
function: Find
inputs: Birmingham
function: FilterStr
dependencies: 0
inputs: NUTS code
UKG31
function: Relate
dependencies: 1
inputs: capital
backward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: What
dependencies: 3