Question: Which is longer, Election published on 1999-04-23 or Lantana?
Choices:
Curse of the Golden Flower
Pleasantville
The Fifth Element
Talk to Her
Rebecca
Training Day
The Hunchback of Notre Dame
Lantana
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: Election
function: FilterDate
dependencies: 0
inputs: publication date
1999-04-23
=
function: Find
inputs: Lantana
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Election" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1999-04-23"^^xsd:date . } UNION { ?e <pred:name> "Lantana" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lantana