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