Question: Which movie is shorter, Shanghai (the one whose production company is Paramount Pictures) or From the Earth to the Moon (the one whose publication date is 1958-01-01)?
Choices:
Shanghai
Pleasantville
The Hunchback of Notre Dame
Training Day
Talk to Her
Rebecca
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Curse of the Golden Flower
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Shanghai
function: And
dependencies: 1
2
function: Find
inputs: From the Earth to the Moon
function: FilterDate
dependencies: 4
inputs: publication date
1958-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shanghai" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" . } UNION { ?e <pred:name> "From the Earth to the Moon" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1958-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Shanghai