Question: How many matches has Carlos Ruiz (a member of Los Angeles Galaxy) played, raced or started as a member of Philadelphia Union?
Choices: 63
146
86
17
9
21
240
109
61
14
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Carlos Ruiz" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Los Angeles Galaxy" . ?e_2 <pred:name> "Philadelphia Union" . ?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: Los Angeles Galaxy
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Carlos Ruiz
function: And
dependencies: 1
2
function: Find
inputs: Philadelphia Union
function: QueryRelationQualifier
dependencies: 3
4
inputs: member of sports team
number of matches played/races/starts
Answer: 14