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