Question: What is the local dialing code for the United States city that is the birthplace of John Wood (who is educated at Columbia University)?
Choices:
985
56 2
02065
02066
02
580
01296
0512
863
08621
Answer: 863
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "John Wood" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "Columbia University" .  ?e <local_dialing_code> ?pv .  }
Program:
function: Find
inputs: Columbia University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Wood
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: QueryAttr
dependencies: 5
inputs: local dialing code