Question: Which is shorter, Crossroads composed by Ry Cooder or romance film The Messenger?
Choices:
The Towering Inferno
Curse of the Golden Flower
Talk to Her
The Fifth Element
Pleasantville
Crossroads
Rebecca
The Hunchback of Notre Dame
The Messenger
Training Day
Program:
function: Find
inputs: Ry Cooder
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Crossroads
function: And
dependencies: 1
2
function: Find
inputs: romance film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: The Messenger
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Crossroads" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Ry Cooder" .   } UNION { ?e <pred:name> "The Messenger" . ?e <genre> ?e_2 . ?e_2 <pred:name> "romance film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Crossroads