Question: Which movie is shorter, The Goonies (the one whose genre is children's film) or Harry Potter and the Order of the Phoenix (the one that has Robbie Coltrane as a cast member)?
Choices: Curse of the Golden Flower
The Towering Inferno
Training Day
Harry Potter and the Order of the Phoenix
The Fifth Element
Talk to Her
The Hunchback of Notre Dame
The Goonies
Rebecca
A Prairie Home Companion
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Goonies" . ?e <genre> ?e_1 . ?e_1 <pred:name> "children's film" .   } UNION { ?e <pred:name> "Harry Potter and the Order of the Phoenix" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Robbie Coltrane" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: children's film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Goonies
function: And
dependencies: 1
2
function: Find
inputs: Robbie Coltrane
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Order of the Phoenix
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: The Goonies