Question: Which movie is longer, The Treasure of the Sierra Madre or Dick Tracy (the one whose genre is film noir)?
Choices:
A Prairie Home Companion
Training Day
Rebecca
Pleasantville
Talk to Her
The Hunchback of Notre Dame
The Treasure of the Sierra Madre
The Fifth Element
Curse of the Golden Flower
The Towering Inferno
Answer: The Treasure of the Sierra Madre
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Treasure of the Sierra Madre" .  } UNION { ?e <pred:name> "Dick Tracy" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film noir" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Treasure of the Sierra Madre
function: Find
inputs: film noir
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Dick Tracy
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater