Question: Is the run-time longer on Radio, a Columbia Pictures production, or on The Shining, produced by Stanley Kubrick?
Choices:
Rebecca
The Shining
Talk to Her
Curse of the Golden Flower
Training Day
The Hunchback of Notre Dame
A Prairie Home Companion
Radio
The Towering Inferno
Pleasantville
Answer: The Shining
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Radio" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Columbia Pictures" .   } UNION { ?e <pred:name> "The Shining" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Stanley Kubrick" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Radio
function: And
dependencies: 1
2
function: Find
inputs: Stanley Kubrick
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: The Shining
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater