Question: Which movie is shorter, Along Came a Spider (the one that origins from Germany) or The Fast and the Furious (the one whose publication date is 1955-01-01)?
Choices:
Talk to Her
Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Rebecca
The Towering Inferno
Along Came a Spider
Training Day
The Fifth Element
The Fast and the Furious
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Along Came a Spider
function: And
dependencies: 1
2
function: Find
inputs: The Fast and the Furious
function: FilterDate
dependencies: 4
inputs: publication date
1955-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Along Came a Spider" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Germany" . } UNION { ?e <pred:name> "The Fast and the Furious" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1955-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Fast and the Furious