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