Question: Which movie is shorter, The Fly (the one whose distributor is 20th Century Fox) or Machete (the one that has Michelle Rodriguez as a cast member)?
Choices:
The Fly
The Hunchback of Notre Dame
Rebecca
Pleasantville
Talk to Her
Machete
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
The Fifth Element
Answer: The Fly
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fly" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "Machete" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Michelle Rodriguez" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Fly
function: And
dependencies: 1
2
function: Find
inputs: Michelle Rodriguez
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Machete
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less