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