Question: Which one is longer, Another Year or On the Road (the one that has Terrence Howard as a cast member)
Choices:
Rebecca
Another Year
A Prairie Home Companion
Training Day
Talk to Her
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
Curse of the Golden Flower
On the Road
Answer: On the Road
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Another Year" .  } UNION { ?e <pred:name> "On the Road" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Terrence Howard" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Another Year
function: Find
inputs: Terrence Howard
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: On the Road
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater