Question: What is the association of Tom McCarthy (who is a member of the Boston Red Sox) with baseball?
Choices: patron saint
country of origin
member of political party
licensed to broadcast to
home world
is a list of
contains administrative territorial entity
exclave of
sport
afflicts
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tom McCarthy" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Boston Red Sox" . ?e_2 <pred:name> "baseball" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Boston Red Sox
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tom McCarthy
function: And
dependencies: 1
2
function: Find
inputs: baseball
function: QueryRelation
dependencies: 3
4
Answer: sport