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