Question: Who is the nominee of the Academy Award for Best Cinematography for which All Quiet on the Western Front (whose script is written by Lewis Milestone) was nominated?
Choices:
Paul Hamblin
Frederick M. Zollo
Pierre Guffroy
Jack Maxsted
Gary Magness
Arthur Edeson
Ra Vincent
Marshall Herskovitz
Bill George
Randall William Cook
Answer: Arthur Edeson
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "All Quiet on the Western Front" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "Lewis Milestone" . ?e_2 <pred:name> "Academy Award for Best Cinematography" . ?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: Lewis Milestone
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: All Quiet on the Western Front
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Cinematography
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee