Question: Whose work on Brazil earned an Academy Award nomination for Best Original Musical Score?
Choices:
Roger Avary
Julianne Moore
Ernest Tidyman
Daniel A. Lomino
Scott Smith
Walter Scharf
David Lee
J. C. Chandor
Fred Astaire
Mark Rydell
Answer: Walter Scharf
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Brazil" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Original Musical Score" . ?e_2 <pred:name> "Academy Award for Best Original Musical Score" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <nominee> ?qpv .  }
Program:
function: Find
inputs: Academy Award for Best Original Musical Score
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Brazil
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Original Musical Score
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee