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