Question: Is the running-time longer for Spider-Man with Lucy Lawless as a cast member or Chinatown?
Choices:
Chinatown
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
Training Day
Spider-Man
Rebecca
Curse of the Golden Flower
Pleasantville
A Prairie Home Companion
Program:
function: Find
inputs: Lucy Lawless
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Chinatown
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spider-Man" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Lucy Lawless" .   } UNION { ?e <pred:name> "Chinatown" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chinatown