Question: How is Roy Thomas of the St. Louis Cardinals related to the Seattle Mariners?
Choices: located in or next to body of water
film crew member
member of sports team
librettist
superhuman feature or ability
league
territory claimed by
contributor(s) to the creative work
field of work
board member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Roy Thomas" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "St. Louis Cardinals" . ?e_2 <pred:name> "Seattle Mariners" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: St. Louis Cardinals
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Roy Thomas
function: And
dependencies: 1
2
function: Find
inputs: Seattle Mariners
function: QueryRelation
dependencies: 3
4
Answer: member of sports team