Question: Which movie is longer, Exodus (the one whose release region is Los Angeles) or The Man with the Golden Gun (the one whose original language is English)?
Choices:
A Prairie Home Companion
The Towering Inferno
Pleasantville
Curse of the Golden Flower
The Fifth Element
Exodus
Rebecca
The Hunchback of Notre Dame
Training Day
The Man with the Golden Gun
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Exodus
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: The Man with the Golden Gun
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Exodus" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Los Angeles" .   } UNION { ?e <pred:name> "The Man with the Golden Gun" . ?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
Answer: Exodus