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