Question: Which one of non-metro districts located in Norfolk (whose FIPS 10-4, for countries and regions, is UKI9) has the biggest population ?
Choices:
North Norfolk
West Dorset
Norwich
King's Lynn and West Norfolk
South Somerset
Kettering
Craven
Great Yarmouth
Guildford
Carlisle
Program:
function: Find
inputs: Norfolk
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
UKI9
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: non-metropolitan district
function: SelectAmong
dependencies: 3
inputs: population
largest
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_1 <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "UKI9" . ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: King's Lynn and West Norfolk