Question: Does Final Destination that has Tony Todd as a cast member) or Gandhi have the longer runtime?
Choices:
Curse of the Golden Flower
The Hunchback of Notre Dame
Gandhi
Rebecca
A Prairie Home Companion
Training Day
The Towering Inferno
Pleasantville
Talk to Her
Final Destination
Program:
function: Find
inputs: Tony Todd
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Final Destination
function: And
dependencies: 1
2
function: Find
inputs: Gandhi
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Final Destination" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tony Todd" .   } UNION { ?e <pred:name> "Gandhi" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Gandhi