Question: Which one is longer, Mrs. Brown or They Might Be Giants (the one featuring Joanne Woodward in its cast)?
Choices: Curse of the Golden Flower
Rebecca
The Hunchback of Notre Dame
They Might Be Giants
Pleasantville
The Fifth Element
Mrs. Brown
Talk to Her
The Towering Inferno
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mrs. Brown" .  } UNION { ?e <pred:name> "They Might Be Giants" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Joanne Woodward" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mrs. Brown
function: Find
inputs: Joanne Woodward
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: They Might Be Giants
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Mrs. Brown