Question: Which movie is shorter, Bram Stoker's Dracula (the one whose genre is drama film) or Bedazzled (the one that has Raquel Welch as a cast member)?
Choices: Bram Stoker's Dracula
The Towering Inferno
Training Day
The Hunchback of Notre Dame
Bedazzled
A Prairie Home Companion
The Fifth Element
Pleasantville
Talk to Her
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bram Stoker's Dracula" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "Bedazzled" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Raquel Welch" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Bram Stoker's Dracula
function: And
dependencies: 1
2
function: Find
inputs: Raquel Welch
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Bedazzled
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Bedazzled