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