Question: Which movie is shorter, The Time Machine (the one that is shot in New York City) or The Nutty Professor (the one that has Drake Bell as a cast member)?
Choices: Curse of the Golden Flower
Rebecca
The Time Machine
The Hunchback of Notre Dame
Talk to Her
A Prairie Home Companion
The Nutty Professor
Pleasantville
The Towering Inferno
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Time Machine" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "The Nutty Professor" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Drake Bell" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Time Machine
function: And
dependencies: 1
2
function: Find
inputs: Drake Bell
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Nutty Professor
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: The Nutty Professor