Question: Which movie is shorter, Caravaggio (the one whose title is Caravaggio) or The Specialist (the one that has Sylvester Stallone as a cast member)?
Choices: Talk to Her
Pleasantville
Training Day
The Specialist
The Fifth Element
The Hunchback of Notre Dame
Curse of the Golden Flower
Rebecca
Caravaggio
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Caravaggio" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Caravaggio" . } UNION { ?e <pred:name> "The Specialist" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Sylvester Stallone" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Caravaggio
function: FilterStr
dependencies: 0
inputs: title
Caravaggio
function: Find
inputs: Sylvester Stallone
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: The Specialist
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: Caravaggio