Question: Which one of non-metropolitan districts, administrative divisions of Norfolk (the one whose country is United Kingdom) has the smallest population?
Choices:
Carlisle
Norwich
South Somerset
Chichester
Guildford
Great Yarmouth
King's Lynn and West Norfolk
Craven
West Dorset
North Norfolk
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Norfolk
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
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_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Norfolk" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Great Yarmouth