Question: Which is shorter, The Merry Widow with costume designs by Richard Day or Funny Girl?
Choices:
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
Funny Girl
Pleasantville
A Prairie Home Companion
The Merry Widow
Rebecca
Program:
function: Find
inputs: Richard Day
function: Relate
dependencies: 0
inputs: costume designer
backward
function: Find
inputs: The Merry Widow
function: And
dependencies: 1
2
function: Find
inputs: Funny Girl
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Merry Widow" . ?e <costume_designer> ?e_1 . ?e_1 <pred:name> "Richard Day" .   } UNION { ?e <pred:name> "Funny Girl" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Merry Widow