Question: Does the shorter run-time belong to time travel-themed Shrek Forever After or to The Transformers: The Movie?
Choices:
Shrek 2
Winnie the Pooh
WALL·E
Lilo & Stitch
Shrek Forever After
Peter Pan
The Transformers: The Movie
Renaissance
Beauty and the Beast
Aladdin
Program:
function: Find
inputs: time travel
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Shrek Forever After
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> "Shrek Forever After" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "time travel" .   } 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