Question: Does Timeline (whose genre is costume drama) or Airplane! have the higher cost?
Choices:
The Hunchback of Notre Dame
Airplane!
Training Day
Curse of the Golden Flower
Rebecca
The Fifth Element
The Towering Inferno
Timeline
Pleasantville
A Prairie Home Companion
Answer: Timeline
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Timeline" . ?e <genre> ?e_1 . ?e_1 <pred:name> "costume drama" .   } UNION { ?e <pred:name> "Airplane!" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: costume drama
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Timeline
function: And
dependencies: 1
2
function: Find
inputs: Airplane!
function: SelectBetween
dependencies: 3
4
inputs: cost
greater