Question: Which movie is longer, Avatar (the one whose release region is United Kingdom) or Piranha 3D?
Choices:
Al Green
Piranha 3D
Avatar
protopunk
The Edge
London Borough of Camden
Royal Naval Air Service
Frankenweenie
The Smurfs
ParaNorman
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Avatar
function: And
dependencies: 1
2
function: Find
inputs: Piranha 3D
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Avatar" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } UNION { ?e <pred:name> "Piranha 3D" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Avatar