Question: Which is longer, Friday Night Lights (the one that has Tim McGraw as a cast member) or Saving Private Ryan?
Choices:
Pleasantville
Talk to Her
The Fifth Element
Saving Private Ryan
Friday Night Lights
Curse of the Golden Flower
Rebecca
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Program:
function: Find
inputs: Tim McGraw
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Friday Night Lights
function: And
dependencies: 1
2
function: Find
inputs: Saving Private Ryan
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friday Night Lights" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Tim McGraw" .   } UNION { ?e <pred:name> "Saving Private Ryan" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Saving Private Ryan