Question: How is Bill Berry (the one that is a member of Crystal Palace F.C.) related to Gillingham F.C. ?
Choices:
child astronomical body
source of income
feast day
architectural style
general manager
country of origin
lyrics by
airline alliance
member of sports team
statistical leader
Program:
function: Find
inputs: Crystal Palace F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Bill Berry
function: And
dependencies: 1
2
function: Find
inputs: Gillingham F.C.
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bill Berry" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Crystal Palace F.C." . ?e_2 <pred:name> "Gillingham F.C." . ?e_1 ?p ?e_2 .  }
Answer: member of sports team