Question: Which movie is longer, Brighton Rock (the one whose production company is BBC Films) or Coach Carter?
Choices:
Coach Carter
Brighton Rock
Rebecca
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
The Fifth Element
Pleasantville
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: BBC Films
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Brighton Rock
function: And
dependencies: 1
2
function: Find
inputs: Coach Carter
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brighton Rock" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "BBC Films" .   } UNION { ?e <pred:name> "Coach Carter" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Coach Carter