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