Question: Which movie is shorter, One Flew Over the Cuckoo's Nest (the one whose genre is film based on literature) or Over the Top?
Choices:
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
One Flew Over the Cuckoo's Nest
Talk to Her
A Prairie Home Companion
The Fifth Element
Pleasantville
Rebecca
Over the Top
Answer: Over the Top
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "One Flew Over the Cuckoo's Nest" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "Over the Top" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: One Flew Over the Cuckoo's Nest
function: And
dependencies: 1
2
function: Find
inputs: Over the Top
function: SelectBetween
dependencies: 3
4
inputs: duration
less