Question: How is Peter Weir of St. Mirren F.C. related to Ayr United F.C.?
Choices:
kit supplier
published in
member of sports team
head of government
student of
voice actor
significant person
main food source
appears in the form of
foundational text
Answer: member of sports team
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peter Weir" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "St. Mirren F.C." . ?e_2 <pred:name> "Ayr United F.C." . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: St. Mirren F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Peter Weir
function: And
dependencies: 1
2
function: Find
inputs: Ayr United F.C.
function: QueryRelation
dependencies: 3
4