Question: Which movie is shorter, The Pursuit of Happyness or The Wrestler (the one that has Judah Friedlander as a cast member)?
Choices:
The Hunchback of Notre Dame
Pleasantville
Training Day
Talk to Her
Curse of the Golden Flower
The Wrestler
Rebecca
A Prairie Home Companion
The Pursuit of Happyness
The Fifth Element
Answer: The Wrestler
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Pursuit of Happyness" .  } UNION { ?e <pred:name> "The Wrestler" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Judah Friedlander" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Pursuit of Happyness
function: Find
inputs: Judah Friedlander
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Wrestler
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less