Question: Which cost less to make, Polar Express (the one whose genre is film based on literature) or Miracle on 34th Street (the one whose composer is Cyril J. Mockridge)?
Choices: A Prairie Home Companion
Rebecca
Pleasantville
The Polar Express
The Fifth Element
The Hunchback of Notre Dame
The Towering Inferno
Miracle on 34th Street
Training Day
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Polar Express" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .   } UNION { ?e <pred:name> "Miracle on 34th Street" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Cyril J. Mockridge" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Polar Express
function: And
dependencies: 1
2
function: Find
inputs: Cyril J. Mockridge
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Miracle on 34th Street
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
Answer: Miracle on 34th Street