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