Question: Which movie is shorter, Ratatouille (the one that was nominated for Academy Award for Best Original Score) or The Rescuers?
Choices:
Aladdin
Ratatouille
Winnie the Pooh
Shrek 2
Peter Pan
WALL·E
Cinderella
The Rescuers
Lilo & Stitch
Beauty and the Beast
Answer: The Rescuers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ratatouille" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Original Score" .   } UNION { ?e <pred:name> "The Rescuers" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Ratatouille
function: And
dependencies: 1
2
function: Find
inputs: The Rescuers
function: SelectBetween
dependencies: 3
4
inputs: duration
less