Question: Which movie is longer, Pan's Labyrinth or Ray (the one whose publication date is 2005-01-06)?
Choices:
The Fifth Element
Training Day
Pan's Labyrinth
The Towering Inferno
Curse of the Golden Flower
Ray
The Hunchback of Notre Dame
Rebecca
Talk to Her
Pleasantville
Program:
function: Find
inputs: Pan's Labyrinth
function: Find
inputs: Ray
function: FilterDate
dependencies: 1
inputs: publication date
2005-01-06
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pan's Labyrinth" . } UNION { ?e <pred:name> "Ray" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2005-01-06"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ray