Question: Between California which was produced by Paramount  and The Crucible written by Jean-Paul Sartre, which one is the longest?
Choices:
Curse of the Golden Flower
A Prairie Home Companion
The Fifth Element
The Hunchback of Notre Dame
The Towering Inferno
Rebecca
Pleasantville
California
Talk to Her
The Crucible
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: California
function: And
dependencies: 1
2
function: Find
inputs: Jean-Paul Sartre
function: Relate
dependencies: 4
inputs: screenwriter
backward
function: Find
inputs: The Crucible
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "California" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } UNION { ?e <pred:name> "The Crucible" . ?e <screenwriter> ?e_2 . ?e_2 <pred:name> "Jean-Paul Sartre" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Crucible