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