Question: What film has a longer duration, The Mummy Returns, which had Rachel Weisz as a cast member, or Sideways?
Choices:
Talk to Her
Sideways
A Prairie Home Companion
Curse of the Golden Flower
Rebecca
The Towering Inferno
The Fifth Element
The Hunchback of Notre Dame
Training Day
The Mummy Returns
Program:
function: Find
inputs: Rachel Weisz
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Mummy Returns
function: And
dependencies: 1
2
function: Find
inputs: Sideways
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Mummy Returns" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Rachel Weisz" .   } UNION { ?e <pred:name> "Sideways" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Mummy Returns