Question: Which movie is longer, The Challenge (the one whose script is wrote by John Sayles) or Julie & Julia?
Choices:
The Hunchback of Notre Dame
A Prairie Home Companion
Talk to Her
The Towering Inferno
Julie & Julia
Rebecca
Curse of the Golden Flower
The Challenge
Training Day
Pleasantville
Program:
function: Find
inputs: John Sayles
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: The Challenge
function: And
dependencies: 1
2
function: Find
inputs: Julie & Julia
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Challenge" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "John Sayles" .   } UNION { ?e <pred:name> "Julie & Julia" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Julie & Julia