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