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