Question: Which movie is longer, Cedar Rapids (the one that has Sigourney Weaver as a cast member) or X-Men Origins: Wolverine (the one whose release region is Norway)?
Choices: Curse of the Golden Flower
Cedar Rapids
The Fifth Element
A Prairie Home Companion
The Towering Inferno
Rebecca
Talk to Her
X-Men Origins: Wolverine
Training Day
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cedar Rapids" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sigourney Weaver" .   } UNION { ?e <pred:name> "X-Men Origins: Wolverine" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Norway" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Sigourney Weaver
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Cedar Rapids
function: And
dependencies: 1
2
function: Find
inputs: Norway
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: X-Men Origins: Wolverine
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: X-Men Origins: Wolverine