Question: Which is longer: May, with a story set in Los Angeles, or the buddy film Crossroads?
Choices:
A Prairie Home Companion
Training Day
Talk to Her
Pleasantville
Rebecca
Crossroads
Curse of the Golden Flower
The Hunchback of Notre Dame
The Towering Inferno
May
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: May
function: And
dependencies: 1
2
function: Find
inputs: buddy film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Crossroads
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "May" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Los Angeles" .   } UNION { ?e <pred:name> "Crossroads" . ?e <genre> ?e_2 . ?e_2 <pred:name> "buddy film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: May