Question: What is the connection between James Stewart (the one that is a member of Motherwell F.C.) to Forfar Athletic F.C.?
Choices: located in the administrative territorial entity
cites
office held by head of the organisation
soundtrack album
member of sports team
filming location
terminus
instrumentation
creator
presenter
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Stewart" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Motherwell F.C." . ?e_2 <pred:name> "Forfar Athletic F.C." . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Motherwell F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: James Stewart
function: And
dependencies: 1
2
function: Find
inputs: Forfar Athletic F.C.
function: QueryRelation
dependencies: 3
4
Answer: member of sports team