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