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