Question: Which movie is shorter, The Transformers: The Movie or Madagascar: Escape 2 Africa (the one whose genre is children's film)?
Choices:
Madagascar: Escape 2 Africa
The Rescuers
Peter Pan
WALL·E
Aladdin
Beauty and the Beast
Shrek 2
Lilo & Stitch
Winnie the Pooh
The Transformers: The Movie
Program:
function: Find
inputs: The Transformers: The Movie
function: Find
inputs: children's film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Madagascar: Escape 2 Africa
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Transformers: The Movie" .  } UNION { ?e <pred:name> "Madagascar: Escape 2 Africa" . ?e <genre> ?e_1 . ?e_1 <pred:name> "children's film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Transformers: The Movie