Question: Which one is longer, The Killer Inside Me (the one that has Ned Beatty as a cast member) or Tulsa (the one whose producer is Walter Wanger) ?
Choices:
The Towering Inferno
The Hunchback of Notre Dame
Talk to Her
Tulsa
Pleasantville
The Fifth Element
The Killer Inside Me
Training Day
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: Ned Beatty
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Killer Inside Me
function: And
dependencies: 1
2
function: Find
inputs: Walter Wanger
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Tulsa
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Killer Inside Me" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ned Beatty" .   } UNION { ?e <pred:name> "Tulsa" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Walter Wanger" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Killer Inside Me