Question: Which film has the shorter runtime, All Quiet on the Western Front (with cast member Patricia Neal) or Kuch Kuch Hota Hai?
Choices:
Luther
A Streetcar Named Desire
All Quiet on the Western Front
The Late Shift
The Music Man
Kuch Kuch Hota Hai
A Christmas Carol
The Challenge
Shackleton
The Goodbye Girl
Program:
function: Find
inputs: Patricia Neal
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: All Quiet on the Western Front
function: And
dependencies: 1
2
function: Find
inputs: Kuch Kuch Hota Hai
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "All Quiet on the Western Front" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Patricia Neal" .   } UNION { ?e <pred:name> "Kuch Kuch Hota Hai" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: All Quiet on the Western Front