Question: Which is longer, Primary Colors or Hamlet starring Kate Winslet?
Choices:
Primary Colors
The Towering Inferno
Talk to Her
The Fifth Element
Hamlet
Training Day
Rebecca
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: Primary Colors
function: Find
inputs: Kate Winslet
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Primary Colors" .  } UNION { ?e <pred:name> "Hamlet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Kate Winslet" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hamlet