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