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