Question: How is Chris Brown who is a member of the Detroit Tigers related to the San Francisco Giants?
Choices:
shares border with
film release region
member of political party
original language of film or TV show
update method
member of sports team
position held
home port
screenwriter
ethnic group
Answer: member of sports team
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Chris Brown" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Detroit Tigers" . ?e_2 <pred:name> "San Francisco Giants" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Detroit Tigers
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Chris Brown
function: And
dependencies: 1
2
function: Find
inputs: San Francisco Giants
function: QueryRelation
dependencies: 3
4