Question: Which movie is shorter, The Fall (the one whose publication date is 2009-11-16) or Schindler's List (the one that has the record label MCA Inc.)?
Choices:
The Fall
Schindler's List
Bon Jovi
Dynasty
Kraftwerk
The B-52's
Roots
Flight of the Conchords
Hollywood
Luis Miguel
Program:
function: Find
inputs: The Fall
function: FilterDate
dependencies: 0
inputs: publication date
2009-11-16
=
function: Find
inputs: MCA Inc.
function: Relate
dependencies: 2
inputs: record label
backward
function: Find
inputs: Schindler's List
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fall" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-11-16"^^xsd:date . } UNION { ?e <pred:name> "Schindler's List" . ?e <record_label> ?e_1 . ?e_1 <pred:name> "MCA Inc." . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Fall