Question: Does Gladiator, released on 1992-01-01, or Forgetting Sarah Marshall have the longer running time?
Choices:
The Fifth Element
Rebecca
Gladiator
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
Forgetting Sarah Marshall
Talk to Her
Training Day
The Towering Inferno
Program:
function: Find
inputs: Gladiator
function: FilterDate
dependencies: 0
inputs: publication date
1992-01-01
=
function: Find
inputs: Forgetting Sarah Marshall
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gladiator" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1992-01-01"^^xsd:date . } UNION { ?e <pred:name> "Forgetting Sarah Marshall" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Forgetting Sarah Marshall