Question: Which movie is shorter, The Last of the Mohicans (the one that received National Film Registry) or Fist of the North Star (the one that has Kaneto Shiozawa as a cast member)?
Choices:
A Prairie Home Companion
Hamlet
Rebecca
Earth
Pleasantville
Fist of the North Star
Paris
The Last of the Mohicans
The Hunchback of Notre Dame
The Scarlet Letter
Program:
function: Find
inputs: National Film Registry
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: The Last of the Mohicans
function: And
dependencies: 1
2
function: Find
inputs: Kaneto Shiozawa
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Fist of the North Star
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last of the Mohicans" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "National Film Registry" .   } UNION { ?e <pred:name> "Fist of the North Star" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Kaneto Shiozawa" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Last of the Mohicans