Question: Which movie is longer, One Flew Over the Cuckoo's Nest (the one whose genre is film based on literature) or Hyde Park on Hudson?
Choices: Hyde Park on Hudson
Talk to Her
Training Day
Rebecca
The Towering Inferno
Pleasantville
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
One Flew Over the Cuckoo's Nest
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> "Hyde Park on Hudson" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?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: Hyde Park on Hudson
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: One Flew Over the Cuckoo's Nest