Question: Which series is longer, Ice Age (including Ice Age: Continental Drift) or The Fast and the Furious (including Fast Five)?
Choices:
Rugrats
Die Hard
Final Destination
Star Wars
Ice Age
The Fast and the Furious
Carry On
The Mummy
Dumb and Dumber
Batman
Program:
function: Find
inputs: Ice Age: Continental Drift
function: Relate
dependencies: 0
inputs: has part
backward
function: Find
inputs: Ice Age
function: And
dependencies: 1
2
function: Find
inputs: Fast Five
function: Relate
dependencies: 4
inputs: part of the series
forward
function: Find
inputs: The Fast and the Furious
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ice Age" . ?e <has_part> ?e_1 . ?e_1 <pred:name> "Ice Age: Continental Drift" .   } UNION { ?e <pred:name> "The Fast and the Furious" . ?e_2 <part_of_the_series> ?e . ?e_2 <pred:name> "Fast Five" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Fast and the Furious