Question: How is catcher John Stephenson related to the Chicago Cubs?
Choices:
ancestral home
chief executive officer
discoverer or inventor
maintained by
given name
member of sports team
affiliation
conflict
does not have part
field of this occupation
Program:
function: Find
inputs: catcher
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: John Stephenson
function: And
dependencies: 1
2
function: Find
inputs: Chicago Cubs
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Stephenson" . ?e_1 <position_played_on_team_/_speciality> ?e_3 . ?e_3 <pred:name> "catcher" . ?e_2 <pred:name> "Chicago Cubs" . ?e_1 ?p ?e_2 .  }
Answer: member of sports team