Question: Which one is shorter, A Star is Born (directions by George Cukor) or Drugstore Cowboy?
Choices:
A Prairie Home Companion
Drugstore Cowboy
A Star Is Born
The Hunchback of Notre Dame
Rebecca
Talk to Her
Pleasantville
The Fifth Element
The Towering Inferno
Training Day
Program:
function: Find
inputs: George Cukor
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: A Star Is Born
function: And
dependencies: 1
2
function: Find
inputs: Drugstore Cowboy
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Star Is Born" . ?e <director> ?e_1 . ?e_1 <pred:name> "George Cukor" .   } UNION { ?e <pred:name> "Drugstore Cowboy" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Drugstore Cowboy