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