Question: Which movie is shorter, Men in Black (the one that has Moe Howard as a cast member) or The Vow (the one whose release region is Canada)?
Choices:
Curse of the Golden Flower
The Towering Inferno
Men in Black
The Fifth Element
Training Day
The Vow
The Hunchback of Notre Dame
Rebecca
Talk to Her
Pleasantville
Answer: Men in Black
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Men in Black" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Moe Howard" .   } UNION { ?e <pred:name> "The Vow" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Canada" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Moe Howard
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Men in Black
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: The Vow
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less