Question: What is the association between David Byrne (who is a member of the St. Johnstone F.C.) and Walsall F.C.?
Choices:
basin country
student
after a work by
risk factor
licensed to broadcast to
superhuman feature or ability
presenter
work location
member of sports team
office held by head of the organisation
Answer: member of sports team
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "David Byrne" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "St. Johnstone F.C." . ?e_2 <pred:name> "Walsall F.C." . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: St. Johnstone F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: David Byrne
function: And
dependencies: 1
2
function: Find
inputs: Walsall F.C.
function: QueryRelation
dependencies: 3
4