Question: What is the connection between West Side Story (that uses the English language) and Leonard Bernstein?
Choices:
stated in
place of death
given name
twinned administrative body
tributary
public holiday
composer
political alignment
has contributing factor
chief executive officer
Answer: composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "West Side Story" . ?e_1 <language_of_work_or_name> ?e_3 . ?e_3 <pred:name> "English" . ?e_2 <pred:name> "Leonard Bernstein" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: West Side Story
function: And
dependencies: 1
2
function: Find
inputs: Leonard Bernstein
function: QueryRelation
dependencies: 3
4