Question: Which one, Harry Potter and the Chamber of Secrets (the one that has Shirley Henderson as a cast member) or Solaris (the one whose genre is art film), has greater duration?
Choices: The Towering Inferno
Harry Potter and the Chamber of Secrets
Solaris
A Prairie Home Companion
Pleasantville
Talk to Her
The Fifth Element
Training Day
The Hunchback of Notre Dame
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Harry Potter and the Chamber of Secrets" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Shirley Henderson" .   } UNION { ?e <pred:name> "Solaris" . ?e <genre> ?e_2 . ?e_2 <pred:name> "art film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Shirley Henderson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Chamber of Secrets
function: And
dependencies: 1
2
function: Find
inputs: art film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Solaris
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Solaris