Question: Is "The Firm," with Garey Busey as a cast member, or "The Last Song" longer?
Choices:
Talk to Her
Training Day
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
Rebecca
The Firm
The Fifth Element
A Prairie Home Companion
The Towering Inferno
Program:
function: Find
inputs: Gary Busey
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Firm
function: And
dependencies: 1
2
function: Find
inputs: The Last Song
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Firm" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Gary Busey" .   } UNION { ?e <pred:name> "The Last Song" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Firm