Question: Which movie is longer, The Aviator (the one that is shot in Croatia) or Footloose (the one whose release region is Belgium)?
Choices: The Fifth Element
Footloose
Curse of the Golden Flower
The Towering Inferno
Training Day
Pleasantville
Talk to Her
A Prairie Home Companion
Rebecca
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Aviator" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Croatia" .   } UNION { ?e <pred:name> "Footloose" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Belgium" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Croatia
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Aviator
function: And
dependencies: 1
2
function: Find
inputs: Belgium
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Footloose
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Footloose