Question: Which movie is longer, Vera Drake or Terminator 3: Rise of the Machines (the one that has Claire Danes as a cast member)?
Choices: Terminator 3: Rise of the Machines
A Prairie Home Companion
Vera Drake
The Towering Inferno
Talk to Her
Rebecca
Training Day
Curse of the Golden Flower
Pleasantville
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vera Drake" .  } UNION { ?e <pred:name> "Terminator 3: Rise of the Machines" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Claire Danes" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Vera Drake
function: Find
inputs: Claire Danes
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Terminator 3: Rise of the Machines
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Vera Drake