Question: What is the relationship between Alice in Wonderland (the one whose composer is Ravi Shankar) to Peter Sellers?
Choices:
symptom of
given name
practiced by
captain
mouth of the watercourse
derivative work
librettist
capital
officially opened by
cast member
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alice in Wonderland" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "Ravi Shankar" . ?e_2 <pred:name> "Peter Sellers" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ravi Shankar
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Alice in Wonderland
function: And
dependencies: 1
2
function: Find
inputs: Peter Sellers
function: QueryRelation
dependencies: 3
4