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