Question: Which movie is longer, Bel Ami (the one whose release region is Ukraine) or Halloween (the one whose director of photography is Dean Cundey)?
Choices: Halloween
Rebecca
The Towering Inferno
Bel Ami
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
Talk to Her
The Fifth Element
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bel Ami" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Ukraine" .   } UNION { ?e <pred:name> "Halloween" . ?e <director_of_photography> ?e_2 . ?e_2 <pred:name> "Dean Cundey" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ukraine
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Bel Ami
function: And
dependencies: 1
2
function: Find
inputs: Dean Cundey
function: Relate
dependencies: 4
inputs: director of photography
backward
function: Find
inputs: Halloween
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Bel Ami