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