Question: What is the shorter property, The Producers (from Columbia Pictures) or Earth (set in Ukraine)?
Choices:
The Scarlet Letter
The Hunchback of Notre Dame
Pleasantville
The Producers
Rebecca
Paris
Little Women
A Prairie Home Companion
Hamlet
Earth
Program:
function: Find
inputs: Ukraine
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Earth
function: And
dependencies: 1
2
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: The Producers
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Earth" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Ukraine" .   } UNION { ?e <pred:name> "The Producers" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Columbia Pictures" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Earth