Question: Which movie is shorter, The Great Gatsby (featuring Carey Mulligan) or The Fugitive (published 1947-01-01)?
Choices:
Rebecca
The Great Gatsby
Training Day
The Hunchback of Notre Dame
The Fugitive
Pleasantville
The Fifth Element
The Towering Inferno
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: Carey Mulligan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Great Gatsby
function: And
dependencies: 1
2
function: Find
inputs: The Fugitive
function: FilterDate
dependencies: 4
inputs: publication date
1947-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Great Gatsby" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Carey Mulligan" . } UNION { ?e <pred:name> "The Fugitive" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1947-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Fugitive