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