Question: Which is the longer of the two, Gulliver's Travels (with voice actor Pinto Colvig) or My Name Is Khan (set is Los Angeles)?
Choices:
Talk to Her
A Prairie Home Companion
The Towering Inferno
Rebecca
Training Day
My Name Is Khan
The Fifth Element
Pleasantville
Curse of the Golden Flower
Gulliver's Travels
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: My Name Is Khan
function: And
dependencies: 1
2
function: Find
inputs: Pinto Colvig
function: Relate
dependencies: 4
inputs: voice actor
backward
function: Find
inputs: Gulliver's Travels
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "My Name Is Khan" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Los Angeles" .   } UNION { ?e <pred:name> "Gulliver's Travels" . ?e <voice_actor> ?e_2 . ?e_2 <pred:name> "Pinto Colvig" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: My Name Is Khan