Question: What is the connection between Lemony Snicket's A Series of Unfortunate Events (the one whose composer is Thomas Newman) to Jim Carrey?
Choices:
enclave within
airline hub
family name
geography of topic
series spin-off
dialect of
cast member
worshipped by
instrument
basin country
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Lemony Snicket's A Series of Unfortunate Events" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "Thomas Newman" . ?e_2 <pred:name> "Jim Carrey" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Thomas Newman
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Lemony Snicket's A Series of Unfortunate Events
function: And
dependencies: 1
2
function: Find
inputs: Jim Carrey
function: QueryRelation
dependencies: 3
4