Question: Which one has a lesser duration, Rock of Ages (whose release region is Finland) or The Amazing Spider-Man (which has Denis Leary as a cast member)?
Choices: The Hunchback of Notre Dame
Training Day
Rebecca
Pleasantville
A Prairie Home Companion
The Towering Inferno
The Amazing Spider-Man
Rock of Ages
Curse of the Golden Flower
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rock of Ages" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Finland" .   } UNION { ?e <pred:name> "The Amazing Spider-Man" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Denis Leary" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Finland
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Rock of Ages
function: And
dependencies: 1
2
function: Find
inputs: Denis Leary
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Amazing Spider-Man
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Rock of Ages