Question: Which movie is longer, American Beauty (the one whose publication date is 1999-09-08) or The Bad Lieutenant: Port of Call New Orleans?
Choices:
Training Day
Talk to Her
Curse of the Golden Flower
American Beauty
A Prairie Home Companion
Pleasantville
The Fifth Element
Rebecca
The Bad Lieutenant: Port of Call New Orleans
The Hunchback of Notre Dame
Program:
function: Find
inputs: American Beauty
function: FilterDate
dependencies: 0
inputs: publication date
1999-09-08
=
function: Find
inputs: The Bad Lieutenant: Port of Call New Orleans
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "American Beauty" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1999-09-08"^^xsd:date . } UNION { ?e <pred:name> "The Bad Lieutenant: Port of Call New Orleans" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Bad Lieutenant: Port of Call New Orleans