Question: Which movie is longer, You Only Live Twice (the one whose genre is spy film) or The Patriot (the one that has Steven Oscar Seagal as a cast member)?
Choices:
Rebecca
You Only Live Twice
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Talk to Her
Training Day
The Patriot
Answer: You Only Live Twice
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "You Only Live Twice" . ?e <genre> ?e_1 . ?e_1 <pred:name> "spy film" .   } UNION { ?e <pred:name> "The Patriot" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Steven Oscar Seagal" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: spy film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: You Only Live Twice
function: And
dependencies: 1
2
function: Find
inputs: Steven Oscar Seagal
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Patriot
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater