Question: Which is longer, The Diary of Anne Frank starring Doris Roberts or Saw published on 2004-10-05?
Choices: Curse of the Golden Flower
The Towering Inferno
The Diary of Anne Frank
The Hunchback of Notre Dame
The Fifth Element
Saw
A Prairie Home Companion
Rebecca
Talk to Her
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Diary of Anne Frank" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Doris Roberts" . } UNION { ?e <pred:name> "Saw" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2004-10-05"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Doris Roberts
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Diary of Anne Frank
function: And
dependencies: 1
2
function: Find
inputs: Saw
function: FilterDate
dependencies: 4
inputs: publication date
2004-10-05
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Saw