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