Question: Which movie is shorter, Gulliver's Travels (the one whose production company is Paramount Pictures) or Romeo and Juliet (the one whose production company is Paramount Pictures)?
Choices:
The Polar Express
A Christmas Carol
Ponyo on the Cliff by the Sea
Wonder Woman
Magic Knight Rayearth
Superman
Gulliver's Travels
Anastasia
Code Geass
My-HiME
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Gulliver's Travels
function: And
dependencies: 1
2
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gulliver's Travels" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } UNION { ?e <pred:name> "Romeo and Juliet" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Paramount Pictures" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gulliver's Travels