Question: Which is longer, Cobra, produced by Warner Bros., or Twilight, released in Thailand?
Choices:
The Fifth Element
Twilight
Training Day
Pleasantville
The Towering Inferno
Cobra
Talk to Her
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
Answer: Twilight
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cobra" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Warner Bros." .   } UNION { ?e <pred:name> "Twilight" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Thailand" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Cobra
function: And
dependencies: 1
2
function: Find
inputs: Thailand
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Twilight
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater