Question: Which movie is longer, Star Wars Episode V: The Empire Strikes Back (the one whose publication date is 1980-05-17) or Lars and the Real Girl?
Choices: The Fifth Element
Pleasantville
The Hunchback of Notre Dame
Lars and the Real Girl
Star Wars Episode V: The Empire Strikes Back
Rebecca
Training Day
Curse of the Golden Flower
A Prairie Home Companion
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Wars Episode V: The Empire Strikes Back" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1980-05-17"^^xsd:date . } UNION { ?e <pred:name> "Lars and the Real Girl" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Star Wars Episode V: The Empire Strikes Back
function: FilterDate
dependencies: 0
inputs: publication date
1980-05-17
=
function: Find
inputs: Lars and the Real Girl
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
Answer: Star Wars Episode V: The Empire Strikes Back