Question: Which association football club has Swansea City A.F.C. member John Mahoney, who played 18 games, as a member?
Choices: Middlesbrough F.C.
Crewe Alexandra F.C.
Preston North End F.C.
Roda JC Kerkrade
Stoke City F.C.
S.C. Braga
Hibernian F.C.
Stade Brestois 29
Swansea City A.F.C.
Zamalek SC
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> "John Mahoney" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Swansea City A.F.C." .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <member_of_sports_team> ; <pred:fact_t> ?e ] <number_of_matches_played/races/starts> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "18"^^xsd:double .  }
Program:
function: Find
inputs: Swansea City A.F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Mahoney
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of sports team
forward
function: QFilterNum
dependencies: 4
inputs: number of matches played/races/starts
18
=
function: FilterConcept
dependencies: 5
inputs: association football club
function: What
dependencies: 6
Answer: Crewe Alexandra F.C.