Question: Which is shorter, Romeo and Juliet, designed by Cedric Gibbons, or The Greatest Story Ever Told?
Choices:
A Prairie Home Companion
Romeo and Juliet
Curse of the Golden Flower
Pleasantville
Talk to Her
The Towering Inferno
Training Day
The Hunchback of Notre Dame
The Greatest Story Ever Told
Rebecca
Program:
function: Find
inputs: Cedric Gibbons
function: Relate
dependencies: 0
inputs: production designer
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: The Greatest Story Ever Told
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Romeo and Juliet" . ?e <production_designer> ?e_1 . ?e_1 <pred:name> "Cedric Gibbons" .   } UNION { ?e <pred:name> "The Greatest Story Ever Told" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Romeo and Juliet