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