Question: Which movie is longer, The Scorpion King (the one whose release region is United States of America) or George Washington (the one that is shot in North Carolina)?
Choices:
Curse of the Golden Flower
The Scorpion King
A Prairie Home Companion
The Towering Inferno
Pleasantville
George Washington
Training Day
Talk to Her
Rebecca
The Hunchback of Notre Dame
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Scorpion King
function: And
dependencies: 1
2
function: Find
inputs: North Carolina
function: Relate
dependencies: 4
inputs: filming location
backward
function: Find
inputs: George Washington
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Scorpion King" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "George Washington" . ?e <filming_location> ?e_2 . ?e_2 <pred:name> "North Carolina" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Scorpion King