Question: Which movie is shorter, Emma (the one whose production company is Miramax) or The Damned (the one whose publication date is 1961-01-01)?
Choices: The Towering Inferno
Training Day
Curse of the Golden Flower
Emma
The Damned
Pleasantville
The Hunchback of Notre Dame
Rebecca
The Fifth Element
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Emma" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Miramax" . } UNION { ?e <pred:name> "The Damned" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1961-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Miramax
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Emma
function: And
dependencies: 1
2
function: Find
inputs: The Damned
function: FilterDate
dependencies: 4
inputs: publication date
1961-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: The Damned