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