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