Question: Which was longer, An Early Frost or The Firm (produced by Sydney Pollack)?
Choices:
The Firm
Pleasantville
Curse of the Golden Flower
A Prairie Home Companion
An Early Frost
The Towering Inferno
Rebecca
Training Day
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: An Early Frost
function: Find
inputs: Sydney Pollack
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: The Firm
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "An Early Frost" .  } UNION { ?e <pred:name> "The Firm" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Sydney Pollack" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Firm