Question: Which movie is longer, 21 Jump Street (the one whose release region is Bulgaria) or Stargate?
Choices:
A Prairie Home Companion
The Hunchback of Notre Dame
Pleasantville
The Towering Inferno
21 Jump Street
Training Day
Rebecca
The Fifth Element
Stargate
Talk to Her
Program:
function: Find
inputs: Bulgaria
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: 21 Jump Street
function: And
dependencies: 1
2
function: Find
inputs: Stargate
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "21 Jump Street" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Bulgaria" .   } UNION { ?e <pred:name> "Stargate" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Stargate