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