Question: Which is longer, Phoenix composed by Graeme Revell or Shanghai Knights?
Choices:
A Prairie Home Companion
Training Day
Phoenix
Talk to Her
Rebecca
Curse of the Golden Flower
The Hunchback of Notre Dame
Shanghai Knights
Pleasantville
The Towering Inferno
Program:
function: Find
inputs: Graeme Revell
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Phoenix
function: And
dependencies: 1
2
function: Find
inputs: Shanghai Knights
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Phoenix" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Graeme Revell" .   } UNION { ?e <pred:name> "Shanghai Knights" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Shanghai Knights