Question: Which one has the smallest population among the non-metropolitan district located in Norfolk originated from Norfolk County?
Choices:
Guildford
North Norfolk
Kettering
Norwich
West Dorset
Carlisle
South Somerset
Craven
King's Lynn and West Norfolk
Great Yarmouth
Program:
function: Find
inputs: Norfolk County
function: Relate
dependencies: 0
inputs: named after
forward
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: non-metropolitan district
function: SelectAmong
dependencies: 5
inputs: population
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Norfolk" . ?e_2 <named_after> ?e_1 . ?e_2 <pred:name> "Norfolk County" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Great Yarmouth