Question: Does Havana (that originates in the United States of America) or Halloween (whose script is written by Rob Zombie) have the shorter runtime?
Choices:
A Prairie Home Companion
The Hunchback of Notre Dame
Halloween
Pleasantville
Curse of the Golden Flower
Training Day
Havana
The Towering Inferno
The Fifth Element
Rebecca
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Havana
function: And
dependencies: 1
2
function: Find
inputs: Rob Zombie
function: Relate
dependencies: 4
inputs: screenwriter
backward
function: Find
inputs: Halloween
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Havana" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Halloween" . ?e <screenwriter> ?e_2 . ?e_2 <pred:name> "Rob Zombie" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Halloween