Question: What is the NUTS code for the ceremonial county of England whose capital is Durham (that is the capital of County Durham)?
Choices:
DEE31
FR
NL32
UKG24
ITE2
UKC14
UKG23
ITF3
UKD4
GR
Answer: UKC14
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Durham" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "County Durham" .  ?e <NUTS_code> ?pv .  }
Program:
function: Find
inputs: County Durham
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Durham
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: ceremonial county of England
function: QueryAttr
dependencies: 5
inputs: NUTS code