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