Question: Does the town where John Irving (who passed away in Nottingham) was born have a local dial code of 01387?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "John Irving" . ?e_1 <place_of_death> ?e_2 . ?e_2 <pred:name> "Nottingham" .  ?e <local_dialing_code> ?pv . ?pv <pred:value> "01387" .  }
Program:
function: Find
inputs: Nottingham
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: John Irving
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: town
function: QueryAttr
dependencies: 5
inputs: local dialing code
function: VerifyStr
dependencies: 6
inputs: 01387
Answer: yes