Question: Which movie cost less to make, Buffy the Vampire Slayer (the one that has Paul Reubens as a cast member) or Batman Returns (the one whose composer is Danny Elfman)?
Choices:
Rebecca
Pleasantville
Training Day
Batman Returns
The Towering Inferno
The Hunchback of Notre Dame
Talk to Her
Buffy the Vampire Slayer
The Fifth Element
A Prairie Home Companion
Answer: Buffy the Vampire Slayer
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Buffy the Vampire Slayer" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Paul Reubens" .   } UNION { ?e <pred:name> "Batman Returns" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Danny Elfman" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Paul Reubens
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Buffy the Vampire Slayer
function: And
dependencies: 1
2
function: Find
inputs: Danny Elfman
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Batman Returns
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less