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