Question: Which movie is shorter, Shark Tale (the one that has Michael Imperioli as a voice actor) or Rise of the Guardians?
Choices:
WALL·E
Aladdin
Shark Tale
Rise of the Guardians
Shrek 2
Renaissance
Beauty and the Beast
Peter Pan
Lilo & Stitch
Winnie the Pooh
Program:
function: Find
inputs: Michael Imperioli
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Shark Tale
function: And
dependencies: 1
2
function: Find
inputs: Rise of the Guardians
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shark Tale" . ?e <voice_actor> ?e_1 . ?e_1 <pred:name> "Michael Imperioli" .   } UNION { ?e <pred:name> "Rise of the Guardians" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Shark Tale