Question: Which movie is longer, Sarajevo (the one whose genre is drama film) or The Scorpion King (the one that has Michael Clarke Duncan as a cast member)?
Choices: Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
The Scorpion King
Training Day
Sarajevo
Rebecca
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sarajevo" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "The Scorpion King" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Michael Clarke Duncan" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Sarajevo
function: And
dependencies: 1
2
function: Find
inputs: Michael Clarke Duncan
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Scorpion King
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Sarajevo