Question: What's the relationship between baseball and John Stephenson (the catcher)?
Choices:
tributary
art director
penalty
from fictional universe
notable people with this condition
filming location
ancestral home
student of
sport
organizer
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: baseball
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> "baseball" . ?e_1 ?p ?e_2 .  }
Answer: sport