Question: What association football club has members named Danny Glover (who is a member of Stockport County F.C.) and Tommy Lee (who is a member of Rochdale A.F.C.)?
Choices:
Macclesfield Town F.C.
Roda JC Kerkrade
A.F.C. Telford United
Stade Brestois 29
Rochdale A.F.C.
Chesterfield F.C.
Port Vale F.C.
Stockport County F.C.
Brisbane Roar FC
Middlesbrough F.C.
Program:
function: Find
inputs: Stockport County F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Danny Glover
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: FilterConcept
dependencies: 4
inputs: association football club
function: Find
inputs: Rochdale A.F.C.
function: Relate
dependencies: 6
inputs: member of sports team
backward
function: Find
inputs: Tommy Lee
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: member of sports team
forward
function: FilterConcept
dependencies: 10
inputs: association football club
function: And
dependencies: 5
11
function: What
dependencies: 12
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e_1 <member_of_sports_team> ?e . ?e_1 <pred:name> "Danny Glover" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Stockport County F.C." .  ?e_3 <member_of_sports_team> ?e . ?e_3 <pred:name> "Tommy Lee" . ?e_3 <member_of_sports_team> ?e_4 . ?e_4 <pred:name> "Rochdale A.F.C." .  }
Answer: Rochdale A.F.C.