Question: Which movie is longer, Superman (the one that is followed by Superman II: The Richard Donner Cut) or The Island of Dr. Moreau (the one whose script is wrote by H. G. Wells)?
Choices:
The Fifth Element
Superman
Rebecca
Training Day
The Towering Inferno
The Hunchback of Notre Dame
Talk to Her
The Island of Dr. Moreau
Pleasantville
A Prairie Home Companion
Answer: Superman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Superman" . ?e_1 <follows> ?e . ?e_1 <pred:name> "Superman II: The Richard Donner Cut" .   } UNION { ?e <pred:name> "The Island of Dr. Moreau" . ?e <screenwriter> ?e_2 . ?e_2 <pred:name> "H. G. Wells" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Superman II: The Richard Donner Cut
function: Relate
dependencies: 0
inputs: follows
forward
function: Find
inputs: Superman
function: And
dependencies: 1
2
function: Find
inputs: H. G. Wells
function: Relate
dependencies: 4
inputs: screenwriter
backward
function: Find
inputs: The Island of Dr. Moreau
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater