Question: Which one is shorter, The Three Musketeers (the one whose composer is Herbert Stothart) or Hannibal Rising ?
Choices:
The Hunchback of Notre Dame
Curse of the Golden Flower
A Prairie Home Companion
Training Day
Hannibal Rising
The Towering Inferno
Pleasantville
The Fifth Element
Talk to Her
Rebecca
Program:
function: Find
inputs: Herbert Stothart
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: Hannibal Rising
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Herbert Stothart" .   } UNION { ?e <pred:name> "Hannibal Rising" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hannibal Rising