Question: Which movie is longer, Vanity Fair (the one whose publication date is 1932-01-01) or Hamlet (the one whose publication date is 1921-01-01)>
Choices: Earth
Hamlet
The Scarlet Letter
A Prairie Home Companion
Little Women
Vanity Fair
The Hunchback of Notre Dame
Paris
Rebecca
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vanity Fair" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1932-01-01"^^xsd:date . } UNION { ?e <pred:name> "Hamlet" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "1921-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Vanity Fair
function: FilterDate
dependencies: 0
inputs: publication date
1932-01-01
=
function: Find
inputs: Hamlet
function: FilterDate
dependencies: 2
inputs: publication date
1921-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
Answer: Hamlet