Question: How many matches has Tony Scott (a member of Aston Villa F.C.) played, raced or started as a member of West Ham United F.C.?
Choices:
61
17
177
97
5
257
238
57
83
81
Answer: 83
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Tony Scott" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Aston Villa F.C." . ?e_2 <pred:name> "West Ham United F.C." . ?e_1 <member_of_sports_team> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <member_of_sports_team> ; <pred:fact_t> ?e_2 ] <number_of_matches_played/races/starts> ?qpv .  }
Program:
function: Find
inputs: Aston Villa F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tony Scott
function: And
dependencies: 1
2
function: Find
inputs: West Ham United F.C.
function: QueryRelationQualifier
dependencies: 3
4
inputs: member of sports team
number of matches played/races/starts