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