Question: Does Poltergeist whose producer is Sam Raimi or Larry Crowne have the longer runtime?
Choices:
The Towering Inferno
The Fifth Element
Training Day
Larry Crowne
Rebecca
Poltergeist
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
A Prairie Home Companion
Program:
function: Find
inputs: Sam Raimi
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Poltergeist
function: And
dependencies: 1
2
function: Find
inputs: Larry Crowne
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Poltergeist" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Sam Raimi" .   } UNION { ?e <pred:name> "Larry Crowne" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Larry Crowne