Question: Which TOID applies to the capital city of Norfolk, which includes the administrative division King's Lynn and West Norfolk?
Choices:
4000000074580405
4000000074553344
4000000074556976
7000000000016444
7000000000011329
7000000000014362
4000000074545582
4000000074573264
4000000074553839
4000000074560731
Answer: 4000000074573264
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Norfolk" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "King's Lynn and West Norfolk" .  ?e <TOID> ?pv .  }
Program:
function: Find
inputs: King's Lynn and West 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: capital of
backward
function: FilterConcept
dependencies: 4
inputs: city
function: QueryAttr
dependencies: 5
inputs: TOID