Question: Does Twilight Zone: The Movie or X-Men Origins: Wolverine (the one whose genre is action film) have less duration?
Choices:
Training Day
X-Men Origins: Wolverine
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
A Prairie Home Companion
Twilight Zone: The Movie
Talk to Her
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: Twilight Zone: The Movie
function: Find
inputs: action film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: X-Men Origins: Wolverine
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twilight Zone: The Movie" .  } UNION { ?e <pred:name> "X-Men Origins: Wolverine" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Twilight Zone: The Movie