Question: Which is longer, San Francisco which is designed by Cedric Gibbons or Twilight whose release region is Panama?
Choices:
San Francisco
Training Day
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
Twilight
Curse of the Golden Flower
Pleasantville
Talk to Her
Program:
function: Find
inputs: Cedric Gibbons
function: Relate
dependencies: 0
inputs: production designer
backward
function: Find
inputs: San Francisco
function: And
dependencies: 1
2
function: Find
inputs: Panama
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Twilight
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Francisco" . ?e <production_designer> ?e_1 . ?e_1 <pred:name> "Cedric Gibbons" .   } UNION { ?e <pred:name> "Twilight" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Panama" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Twilight