Question: Which movie is shorter, Miracle on 34th Street (the one whose publication date is 1994-12-08) or Star Trek (the one whose composer is Michael Giacchino)?
Choices:
Star Trek
The Towering Inferno
Talk to Her
A Prairie Home Companion
Miracle on 34th Street
The Hunchback of Notre Dame
Pleasantville
The Fifth Element
Rebecca
Curse of the Golden Flower
Answer: Miracle on 34th Street
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Miracle on 34th Street" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1994-12-08"^^xsd:date . } UNION { ?e <pred:name> "Star Trek" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Michael Giacchino" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Miracle on 34th Street
function: FilterDate
dependencies: 0
inputs: publication date
1994-12-08
=
function: Find
inputs: Michael Giacchino
function: Relate
dependencies: 2
inputs: composer
backward
function: Find
inputs: Star Trek
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less