Question: What is the connection between Danny Smith (the one whose position is midfielder) to Kettering (the one whose local dialing code is 01536)?
Choices:
part of the series
place of death
drafted by
producer
instrument
fictional universe described in
month of the year
subject has role
general manager
basic form of government
Answer: place of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Danny Smith" . ?e_1 <position_played_on_team_/_speciality> ?e_3 . ?e_3 <pred:name> "midfielder" . ?e_2 <pred:name> "Kettering" . ?e_2 <local_dialing_code> ?pv . ?pv <pred:value> "01536" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: midfielder
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Danny Smith
function: And
dependencies: 1
2
function: Find
inputs: Kettering
function: FilterStr
dependencies: 4
inputs: local dialing code
01536
function: QueryRelation
dependencies: 3
5