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