Question: Which movie is longer, The Great Gatsby (the one whose publication date is 1926-01-01) or Saw (the one whose release region is Taiwan)?
Choices:
Rebecca
Pleasantville
Saw
The Hunchback of Notre Dame
Training Day
The Towering Inferno
The Fifth Element
Curse of the Golden Flower
The Great Gatsby
A Prairie Home Companion
Answer: Saw
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Great Gatsby" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1926-01-01"^^xsd:date . } UNION { ?e <pred:name> "Saw" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Taiwan" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Great Gatsby
function: FilterDate
dependencies: 0
inputs: publication date
1926-01-01
=
function: Find
inputs: Taiwan
function: Relate
dependencies: 2
inputs: film release region
backward
function: Find
inputs: Saw
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater