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