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