Question: Which movie is longer, Starship Troopers (the one whose genre is film based on literature) or 21 Jump Street (the one whose release region is Netherlands)?
Choices:
21 Jump Street
Rebecca
The Towering Inferno
Starship Troopers
The Hunchback of Notre Dame
The Fifth Element
A Prairie Home Companion
Pleasantville
Training Day
Talk to Her
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Starship Troopers
function: And
dependencies: 1
2
function: Find
inputs: Netherlands
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: 21 Jump Street
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Starship Troopers" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "21 Jump Street" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Netherlands" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Starship Troopers