Question: Which movie is longer, Death on the Nile (the one that has Peter Ustinov as a cast member) or Georgia (the one whose original language is English)?
Choices:
Curse of the Golden Flower
Talk to Her
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
A Prairie Home Companion
Rebecca
Training Day
The Towering Inferno
Death on the Nile
Answer: Death on the Nile
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Death on the Nile" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Peter Ustinov" .   } UNION { ?e <pred:name> "Georgia" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "English" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Peter Ustinov
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Death on the Nile
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: Georgia
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater