Question: Which movie is shorter, Arizona (the one whose director is Douglas Fairbanks) or Crossroads (the one that has Britney Spears as a cast member)?
Choices: The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
The Fifth Element
Arizona
Training Day
A Prairie Home Companion
Crossroads
Rebecca
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Arizona" . ?e <director> ?e_1 . ?e_1 <pred:name> "Douglas Fairbanks" .   } UNION { ?e <pred:name> "Crossroads" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Britney Spears" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Douglas Fairbanks
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Arizona
function: And
dependencies: 1
2
function: Find
inputs: Britney Spears
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Crossroads
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Arizona