Question: Which movie is shorter, Goodfellas or Braveheart (the one that received Academy Award for Best Cinematography)?
Choices:
The Hunchback of Notre Dame
The Fifth Element
Rebecca
Talk to Her
Pleasantville
Goodfellas
The Towering Inferno
Braveheart
Training Day
A Prairie Home Companion
Answer: Goodfellas
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Goodfellas" .  } UNION { ?e <pred:name> "Braveheart" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Cinematography" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Goodfellas
function: Find
inputs: Academy Award for Best Cinematography
function: Relate
dependencies: 1
inputs: award received
backward
function: Find
inputs: Braveheart
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less