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