Question: Which movie is longer, Alvin and the Chipmunks: Chipwrecked (the one whose release region is Sweden) or Ghostbusters (the one whose genre is adventure film)?
Choices:
The Muppets
The Flintstones
G-Force
John Carter
Alvin and the Chipmunks: Chipwrecked
Holes
Ghostbusters
The Flintstones in Viva Rock Vegas
National Treasure: Book of Secrets
Enchanted
Program:
function: Find
inputs: Sweden
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Alvin and the Chipmunks: Chipwrecked
function: And
dependencies: 1
2
function: Find
inputs: adventure film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Ghostbusters
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alvin and the Chipmunks: Chipwrecked" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Sweden" .   } UNION { ?e <pred:name> "Ghostbusters" . ?e <genre> ?e_2 . ?e_2 <pred:name> "adventure film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ghostbusters