Question: What association football club is from the United States of America and has John Spencer, the member of Greenock Morton F.C., as a member?
Choices:
Stade Brestois 29
Motherwell F.C.
Everton F.C.
Rangers F.C.
Middlesbrough F.C.
Seattle Sounders FC
Brisbane Roar FC
Zamalek SC
Colorado Rapids
Philadelphia Union
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: association football club
function: Find
inputs: Greenock Morton F.C.
function: Relate
dependencies: 3
inputs: member of sports team
backward
function: Find
inputs: John Spencer
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: member of sports team
forward
function: FilterConcept
dependencies: 7
inputs: association football club
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "association football club" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e_2 <member_of_sports_team> ?e . ?e_2 <pred:name> "John Spencer" . ?e_2 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Greenock Morton F.C." .  }
Answer: Colorado Rapids