Question: When A Midsummer Night's Dream, with director of photography Hal Mohr, was up for the Academy Award for Best Cinematography, who was its nominee?
Choices: Tennessee Williams
Joseph Geisinger
Matt Aitken
James Goldman
Broderick Crawford
Carlos Delarios
Viggo Mortensen
Robert Glass
Hal Mohr
Kirk Baxter
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "A Midsummer Night's Dream" . ?e_1 <director_of_photography> ?e_3 . ?e_3 <pred:name> "Hal Mohr" . ?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: Hal Mohr
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: A Midsummer Night's Dream
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Cinematography
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
Answer: Hal Mohr