Question: What non-metropolitan district's capital is Great Yarmouth (whose population is 38693) and location is in Norfolk (whose official website is http://www.norfolk.gov.uk/)?
Choices:
King's Lynn and West Norfolk
Craven
South Somerset
North Norfolk
West Dorset
Woking
Kettering
Great Yarmouth
Carlisle
Guildford
Answer: Great Yarmouth
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Great Yarmouth" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "38693"^^xsd:double .  ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Norfolk" . ?e_2 <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.norfolk.gov.uk/" .  }
Program:
function: Find
inputs: Great Yarmouth
function: FilterNum
dependencies: 0
inputs: population
38693
=
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: non-metropolitan district
function: Find
inputs: Norfolk
function: FilterStr
dependencies: 4
inputs: official website
http://www.norfolk.gov.uk/
function: Relate
dependencies: 5
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 6
inputs: non-metropolitan district
function: And
dependencies: 3
7
function: What
dependencies: 8