Question: Which has a greater duration, Cape Fear (whose genre is film based on literature) or Speed (whose composer is Pritam Chakraborty)?
Choices:
Rebecca
Training Day
Curse of the Golden Flower
Cape Fear
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
Talk to Her
A Prairie Home Companion
Speed
Answer: Speed
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cape Fear" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "Speed" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Pritam Chakraborty" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 1
2
function: Find
inputs: Pritam Chakraborty
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Speed
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater