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