Question: Which one is longer, Beirut (the one whose publication date is 2018-08-10) or The Mummy (the one whose production company is Hammer Film Productions)   ?
Choices:
The Hunchback of Notre Dame
Talk to Her
A Prairie Home Companion
Beirut
Rebecca
The Towering Inferno
The Mummy
The Fifth Element
Curse of the Golden Flower
Training Day
Program:
function: Find
inputs: Beirut
function: FilterDate
dependencies: 0
inputs: publication date
2018-08-10
=
function: Find
inputs: Hammer Film Productions
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: The Mummy
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beirut" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2018-08-10"^^xsd:date . } UNION { ?e <pred:name> "The Mummy" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Hammer Film Productions" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Beirut