Question: Which movie is shorter, Cairo (the one whose composer is Herbert Stothart) or Twin Peaks: Fire Walk with Me (the one whose production company is New Line Cinema)?
Choices:
A Prairie Home Companion
Cairo
Curse of the Golden Flower
Rebecca
The Hunchback of Notre Dame
Twin Peaks: Fire Walk with Me
Talk to Her
The Towering Inferno
The Fifth Element
Training Day
Program:
function: Find
inputs: Herbert Stothart
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Cairo
function: And
dependencies: 1
2
function: Find
inputs: New Line Cinema
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Twin Peaks: Fire Walk with Me
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cairo" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Herbert Stothart" .   } UNION { ?e <pred:name> "Twin Peaks: Fire Walk with Me" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "New Line Cinema" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Cairo