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