Question: Which movie is longer, The Fast and the Furious (the one that has Dwayne Johnson as a cast member) or American Pie (the one that contains American Pie 2)?
Choices: Final Destination
Dumb and Dumber
The Smurfs
American Pie
Star Wars
Ice Age
The Fast and the Furious
Rugrats
Carry On
Die Hard
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Fast and the Furious" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Dwayne Johnson" .   } UNION { ?e <pred:name> "American Pie" . ?e_2 <part_of_the_series> ?e . ?e_2 <pred:name> "American Pie 2" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dwayne Johnson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Fast and the Furious
function: And
dependencies: 1
2
function: Find
inputs: American Pie 2
function: Relate
dependencies: 4
inputs: part of the series
forward
function: Find
inputs: American Pie
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: The Fast and the Furious