Question: Which is shorter, Henry V (nominated for Academy Award for Best Director) or The Human Stain (produced by Gary Lucchesi)?
Choices:
The Human Stain
The Fifth Element
Talk to Her
The Hunchback of Notre Dame
Rebecca
Henry V
Curse of the Golden Flower
Pleasantville
A Prairie Home Companion
The Towering Inferno
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Henry V
function: And
dependencies: 1
2
function: Find
inputs: Gary Lucchesi
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: The Human Stain
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Henry V" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } UNION { ?e <pred:name> "The Human Stain" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Gary Lucchesi" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Human Stain