Question: Which movie is shorter, Nashville (the one that was nominated for Academy Award for Best Director) or The Hustler?
Choices:
Curse of the Golden Flower
The Hunchback of Notre Dame
Talk to Her
A Prairie Home Companion
The Towering Inferno
Nashville
Rebecca
Training Day
The Fifth Element
The Hustler
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Nashville
function: And
dependencies: 1
2
function: Find
inputs: The Hustler
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nashville" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } UNION { ?e <pred:name> "The Hustler" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Hustler