Question: How are Elmer Bernstein and the Bolero cast member Olivia d'Abo related?
Choices: drug used for treatment
office held by head of the organisation
educated at
contributing factor of
political ideology
creator
film distribute region
basin country
lyrics by
composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Bolero" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Olivia d'Abo" . ?e_2 <pred:name> "Elmer Bernstein" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Olivia d'Abo
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Bolero
function: And
dependencies: 1
2
function: Find
inputs: Elmer Bernstein
function: QueryRelation
dependencies: 3
4
Answer: composer