Question: How is Tom Johnson of the Montreal Canadiens related to ice hockey?
Choices:
does not have part
from fictional universe
place of birth
culture
godparent
vehicle normally used
film editor
organizer
geography of topic
sport
Program:
function: Find
inputs: Montreal Canadiens
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tom Johnson
function: And
dependencies: 1
2
function: Find
inputs: ice hockey
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tom Johnson" . ?e_1 <member_of_sports_team> ?e_3 . ?e_3 <pred:name> "Montreal Canadiens" . ?e_2 <pred:name> "ice hockey" . ?e_1 ?p ?e_2 .  }
Answer: sport