Question: Which one has the longer duration, Clash of the Titans (the one whose publication date is 215th April 2010) or Rush Hour 3 ?
Choices:
Pleasantville
A Prairie Home Companion
Curse of the Golden Flower
Rebecca
Talk to Her
Rush Hour 3
The Towering Inferno
Training Day
The Fifth Element
Clash of the Titans
Program:
function: Find
inputs: Clash of the Titans
function: FilterDate
dependencies: 0
inputs: publication date
2010-04-15
=
function: Find
inputs: Rush Hour 3
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Clash of the Titans" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2010-04-15"^^xsd:date . } UNION { ?e <pred:name> "Rush Hour 3" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Clash of the Titans