Question: Which movie is longer, Ghostbusters (the one that follows Ghostbusters II) or Red Dragon (the one whose publication date is 1965-01-01)?
Choices:
Ghostbusters
The Towering Inferno
Red Dragon
Talk to Her
A Prairie Home Companion
Pleasantville
The Hunchback of Notre Dame
Curse of the Golden Flower
The Fifth Element
Rebecca
Answer: Ghostbusters
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ghostbusters" . ?e <follows> ?e_1 . ?e_1 <pred:name> "Ghostbusters II" . } UNION { ?e <pred:name> "Red Dragon" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1965-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ghostbusters II
function: Relate
dependencies: 0
inputs: follows
backward
function: Find
inputs: Ghostbusters
function: And
dependencies: 1
2
function: Find
inputs: Red Dragon
function: FilterDate
dependencies: 4
inputs: publication date
1965-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater