Question: What is the connection between small forward Henry James and the Houston Rockets?
Choices:
movement
member of sports team
inspired by
killed by
convicted of
parent astronomical body
sexual orientation
said to be the same as
different from
field of work
Program:
function: Find
inputs: small forward
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Henry James
function: And
dependencies: 1
2
function: Find
inputs: Houston Rockets
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Henry James" . ?e_1 <position_played_on_team_/_speciality> ?e_3 . ?e_3 <pred:name> "small forward" . ?e_2 <pred:name> "Houston Rockets" . ?e_1 ?p ?e_2 .  }
Answer: member of sports team