Question: Which movie is shorter, Franz Schubert (the one whose duration is 111 minute) or Barcelona (the one whose production company is Castle Rock Entertainment)?
Choices:
Training Day
Barcelona
The Fifth Element
Rebecca
The Towering Inferno
Talk to Her
A Prairie Home Companion
Franz Schubert
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: Franz Schubert
function: FilterNum
dependencies: 0
inputs: duration
111 minute
=
function: Find
inputs: Castle Rock Entertainment
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: Barcelona
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Franz Schubert" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "111"^^xsd:double . } UNION { ?e <pred:name> "Barcelona" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Castle Rock Entertainment" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Barcelona