Question: What is the relation between Alan Bennett (the one that could be a member of Cork City F.C.) to Reading F.C.
Choices:
languages spoken, written or signed
penalty
signatory
discoverer or inventor
performer
narrator
member of sports team
costume designer
significant person
place of publication
Program:
function: Find
inputs: Cork City F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Alan Bennett
function: And
dependencies: 1
2
function: Find
inputs: Reading F.C.
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alan Bennett" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Cork City F.C." . ?e_2 <pred:name> "Reading F.C." . ?e_1 ?p ?e_2 .  }
Answer: member of sports team