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