Question: Which is shorter, The Song of Bernadette or Happy Together (released in the US)?
Choices:
Training Day
Talk to Her
Rebecca
The Hunchback of Notre Dame
Happy Together
A Prairie Home Companion
Pleasantville
The Song of Bernadette
Curse of the Golden Flower
The Towering Inferno
Program:
function: Find
inputs: The Song of Bernadette
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: Happy Together
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Song of Bernadette" .  } UNION { ?e <pred:name> "Happy Together" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Happy Together