Question: Is the duration greater for Arizona, whose publication date is 1940-01-01, or The World's Fastest Indian?
Choices:
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
The World's Fastest Indian
Rebecca
Arizona
The Hunchback of Notre Dame
Pleasantville
Program:
function: Find
inputs: Arizona
function: FilterDate
dependencies: 0
inputs: publication date
1940-01-01
=
function: Find
inputs: The World's Fastest Indian
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Arizona" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1940-01-01"^^xsd:date . } UNION { ?e <pred:name> "The World's Fastest Indian" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The World's Fastest Indian