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