Question: Which movie is shorter, The NeverEnding Story or The Flintstones (the one that is followed by The Flintstones in Viva Rock Vegas)?
Choices:
John Carter
The Flintstones in Viva Rock Vegas
Old Dogs
G-Force
The Flintstones
Holes
Alvin and the Chipmunks: Chipwrecked
Enchanted
The NeverEnding Story
National Treasure: Book of Secrets
Answer: The Flintstones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The NeverEnding Story" .  } UNION { ?e <pred:name> "The Flintstones" . ?e <followed_by> ?e_1 . ?e_1 <pred:name> "The Flintstones in Viva Rock Vegas" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The NeverEnding Story
function: Find
inputs: The Flintstones in Viva Rock Vegas
function: Relate
dependencies: 1
inputs: followed by
backward
function: Find
inputs: The Flintstones
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less