Question: Which movie is longer, The Mummy (the one whose publication date is 1959-01-01) or Luther (the one whose production company is Australian Broadcasting Corporation)?
Choices:
The Late Shift
All Quiet on the Western Front
The Challenge
The Three Musketeers
Shackleton
A Streetcar Named Desire
A Christmas Carol
The Mummy
The Goodbye Girl
Luther
Program:
function: Find
inputs: The Mummy
function: FilterDate
dependencies: 0
inputs: publication date
1959-01-01
=
function: Find
inputs: Australian Broadcasting Corporation
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: Luther
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Mummy" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1959-01-01"^^xsd:date . } UNION { ?e <pred:name> "Luther" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Australian Broadcasting Corporation" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Luther