Question: Which non-metropolitan district contains the city located in Norfolk (which contains the administrative division North Norfolk)?
Choices: Chichester
Craven
South Somerset
Preston
North Norfolk
Kettering
Norwich
Guildford
Carlisle
Norfolk
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Norfolk" . ?e_2 <contains_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "North Norfolk" .   }
Program:
function: Find
inputs: North Norfolk
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Norfolk
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: city
function: Relate
dependencies: 5
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 6
inputs: non-metropolitan district
function: What
dependencies: 7
Answer: Norwich