Question: Which is shorter, Fist of the North Star (distributed by Toei Company) or Death on the Nile (based on literature)?
Choices:
Fist of the North Star
Training Day
Curse of the Golden Flower
Talk to Her
Rebecca
Pleasantville
A Prairie Home Companion
The Fifth Element
The Towering Inferno
The Hunchback of Notre Dame
Answer: Fist of the North Star
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fist of the North Star" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Toei Company" .   } UNION { ?e <pred:name> "Death on the Nile" . ?e <genre> ?e_2 . ?e_2 <pred:name> "film based on literature" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Toei Company
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Fist of the North Star
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Death on the Nile
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less