Question: Which movie is longer, Ice Age: Dawn of the Dinosaurs (the one that has Bill Hader as a voice actor) or Treasure Planet?
Choices:
Beauty and the Beast
Ice Age: Dawn of the Dinosaurs
Peter Pan
The Rescuers
Winnie the Pooh
Aladdin
Shrek 2
Renaissance
Treasure Planet
WALL·E
Program:
function: Find
inputs: Bill Hader
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Ice Age: Dawn of the Dinosaurs
function: And
dependencies: 1
2
function: Find
inputs: Treasure Planet
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ice Age: Dawn of the Dinosaurs" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Bill Hader" .   } UNION { ?e <pred:name> "Treasure Planet" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ice Age: Dawn of the Dinosaurs