Question: Does Atlantic City (that originates in France) or The Siege (that has Bruce Willis as a cast member) have the longer runtime?
Choices:
A Prairie Home Companion
The Fifth Element
Rebecca
The Towering Inferno
Curse of the Golden Flower
Talk to Her
Training Day
The Hunchback of Notre Dame
The Siege
Pleasantville
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Atlantic City
function: And
dependencies: 1
2
function: Find
inputs: Bruce Willis
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Siege
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Atlantic City" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "France" .   } UNION { ?e <pred:name> "The Siege" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Bruce Willis" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Siege