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