Question: Which has greater duration, Kiss Kiss Bang Bang or Savages (which has a publication date of 1972-01-01)?
Choices:
A Prairie Home Companion
Savages
Training Day
Kiss Kiss Bang Bang
Talk to Her
Rebecca
The Towering Inferno
The Hunchback of Notre Dame
Curse of the Golden Flower
Pleasantville
Answer: Savages
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kiss Kiss Bang Bang" . } UNION { ?e <pred:name> "Savages" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1972-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Kiss Kiss Bang Bang
function: Find
inputs: Savages
function: FilterDate
dependencies: 1
inputs: publication date
1972-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater