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