Question: Which movie is longer, Love Affair (the one whose script is wrote by Warren Beatty) or Speed Racer (the one whose composer is Michael Giacchino)?
Choices: The Hunchback of Notre Dame
A Prairie Home Companion
Love Affair
Speed Racer
Talk to Her
Training Day
Rebecca
The Fifth Element
Pleasantville
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Love Affair" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Warren Beatty" .   } UNION { ?e <pred:name> "Speed Racer" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Michael Giacchino" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Warren Beatty
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Love Affair
function: And
dependencies: 1
2
function: Find
inputs: Michael Giacchino
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Speed Racer
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Speed Racer