Question: Which movie is longer, Catwoman (the one whose original language is Spanish) or Spellbound (the one whose distributor is THINKFilm)?
Choices:
The Towering Inferno
The Fifth Element
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
Training Day
Rebecca
Talk to Her
Spellbound
Catwoman
Answer: Catwoman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Catwoman" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "Spanish" .   } UNION { ?e <pred:name> "Spellbound" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "THINKFilm" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Spanish
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Catwoman
function: And
dependencies: 1
2
function: Find
inputs: THINKFilm
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Spellbound
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater