Question: What film has a shorter running time, The Diary of Anne Frank, nominated for an Academy Award for Best Cinematography, or Coming Home, which mainly depicts the Vietnam War?
Choices:
Pleasantville
A Prairie Home Companion
The Hunchback of Notre Dame
Talk to Her
Training Day
The Towering Inferno
The Diary of Anne Frank
Curse of the Golden Flower
Coming Home
Rebecca
Program:
function: Find
inputs: Academy Award for Best Cinematography
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Diary of Anne Frank
function: And
dependencies: 1
2
function: Find
inputs: Vietnam War
function: Relate
dependencies: 4
inputs: main subject
backward
function: Find
inputs: Coming Home
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Diary of Anne Frank" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Cinematography" .   } UNION { ?e <pred:name> "Coming Home" . ?e <main_subject> ?e_2 . ?e_2 <pred:name> "Vietnam War" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Coming Home