Question: Which was longer Gigli or Henry V (the one that has Emma Thompson as a cast member)?
Choices:
Rebecca
Henry V
Pleasantville
A Prairie Home Companion
Training Day
Talk to Her
The Hunchback of Notre Dame
Curse of the Golden Flower
The Fifth Element
The Towering Inferno
Answer: Henry V
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gigli" .  } UNION { ?e <pred:name> "Henry V" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Emma Thompson" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Gigli
function: Find
inputs: Emma Thompson
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Henry V
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater