Question: Which is shorter, the biographical film The Sound of Music, or Brazil, which was nominated for an Academy Award for Best Writing, Original Screenplay?
Choices:
Training Day
Talk to Her
Brazil
The Hunchback of Notre Dame
Curse of the Golden Flower
The Sound of Music
The Towering Inferno
The Fifth Element
Rebecca
Pleasantville
Answer: Brazil
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Sound of Music" . ?e <genre> ?e_1 . ?e_1 <pred:name> "biographical film" .   } UNION { ?e <pred:name> "Brazil" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Writing, Original Screenplay" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: biographical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Sound of Music
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Original Screenplay
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Brazil
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less