Question: Which movie is shorter, Working Girl (the one that has Melanie Griffith as a cast member) or Earth (the one that origins from Soviet Union)?
Choices: A Prairie Home Companion
Pleasantville
Rebecca
Earth
The Scarlet Letter
The Last of the Mohicans
Working Girl
Paris
Hamlet
Little Women
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Working Girl" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Melanie Griffith" .   } UNION { ?e <pred:name> "Earth" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "Soviet Union" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Melanie Griffith
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Working Girl
function: And
dependencies: 1
2
function: Find
inputs: Soviet Union
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Earth
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: Earth