Question: Which is shorter, Queen produced by Anurag Kashyap or The Go-Between composed by Michel Legrand?
Choices:
A Prairie Home Companion
Training Day
Talk to Her
The Go-Between
The Fifth Element
Queen
Rebecca
Pleasantville
Curse of the Golden Flower
The Hunchback of Notre Dame
Program:
function: Find
inputs: Anurag Kashyap
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Queen
function: And
dependencies: 1
2
function: Find
inputs: Michel Legrand
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: The Go-Between
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Queen" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Anurag Kashyap" .   } UNION { ?e <pred:name> "The Go-Between" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Michel Legrand" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Go-Between