Question: Which movie is longer, Natural Born Killers or The Man Who Knew Too Much (the one that has Peter Lorre as a cast member)?
Choices:
Curse of the Golden Flower
Pleasantville
A Prairie Home Companion
The Fifth Element
Rebecca
Talk to Her
The Hunchback of Notre Dame
The Man Who Knew Too Much
Training Day
Natural Born Killers
Answer: Natural Born Killers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Natural Born Killers" .  } UNION { ?e <pred:name> "The Man Who Knew Too Much" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Peter Lorre" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Natural Born Killers
function: Find
inputs: Peter Lorre
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Man Who Knew Too Much
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater