Question: What is the population of the metropolitan borough that has the capital Walsall whose postal code is WS1?
Choices:
110637
145354
84453
3206000
32704
276100
1431088
3089027
3115431
190475
Answer: 276100
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Walsall" . ?e_1 <postal_code> ?pv_1 . ?pv_1 <pred:value> "WS1" . ?e <population> ?pv .  }
Program:
function: Find
inputs: Walsall
function: FilterStr
dependencies: 0
inputs: postal code
WS1
function: Relate
dependencies: 1
inputs: capital of
forward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: QueryAttr
dependencies: 3
inputs: population