Question: How is second baseman John Houseman related to the Chicago Cubs?
Choices:
dissertation submitted to
participant
sport
takes place in fictional universe
official residence
has parts of the class
member of sports team
culture
family name
organizer
Program:
function: Find
inputs: second baseman
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: John Houseman
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 Houseman" . ?e_1 <position_played_on_team_/_speciality> ?e_3 . ?e_3 <pred:name> "second baseman" . ?e_2 <pred:name> "Chicago Cubs" . ?e_1 ?p ?e_2 .  }
Answer: member of sports team