Question: Does the longer running time belong to Heat, with Tom Sizemore as a cast member, or Heroes, featuring Bobby Deol in its cast ?
Choices: Curse of the Golden Flower
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
Rebecca
The Fifth Element
Talk to Her
Heat
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heat" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tom Sizemore" .   } UNION { ?e <pred:name> "Heroes" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Bobby Deol" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Tom Sizemore
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Heat
function: And
dependencies: 1
2
function: Find
inputs: Bobby Deol
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Heroes
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Heat