Question: How many matches has Stephen King (a member of D.C. United) played, raced or started as a member of Chicago Fire (which began on 1997-10-08)?
Choices: 56
20
76
183
63
228
115
21
128
72
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Stephen King" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "D.C. United" . ?e_2 <pred:name> "Chicago Fire" . ?e_2 <inception> ?pv . ?pv <pred:date> "1997-10-08"^^xsd:date . ?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: D.C. United
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Stephen King
function: And
dependencies: 1
2
function: Find
inputs: Chicago Fire
function: FilterDate
dependencies: 4
inputs: inception
1997-10-08
=
function: QueryRelationQualifier
dependencies: 3
5
inputs: member of sports team
number of matches played/races/starts
Answer: 20