Question: Does Sexy Beast or Into the Storm (that has Brendan Gleeson as a cast member) have the longer running time?
Choices:
The Music Man
The Challenge
Shackleton
A Christmas Carol
Into the Storm
A Streetcar Named Desire
All Quiet on the Western Front
The Goodbye Girl
The Three Musketeers
The Late Shift
Program:
function: Find
inputs: Sexy Beast
function: Find
inputs: Brendan Gleeson
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Into the Storm
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sexy Beast" .  } UNION { ?e <pred:name> "Into the Storm" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Brendan Gleeson" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Into the Storm