Question: Which movie is shorter, Jaws (the one whose publication date is 1975-12-18) or The Merry Widow (the one that has Walter Plunkett as a cast member)?
Choices:
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
The Fifth Element
Pleasantville
Rebecca
The Merry Widow
The Towering Inferno
Jaws
Answer: The Merry Widow
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jaws" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1975-12-18"^^xsd:date . } UNION { ?e <pred:name> "The Merry Widow" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Walter Plunkett" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Jaws
function: FilterDate
dependencies: 0
inputs: publication date
1975-12-18
=
function: Find
inputs: Walter Plunkett
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: The Merry Widow
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less