Question: Which cost less, Little Nicky starring Jess Harnell or the drama film The Perks of Being a Wallflower?
Choices:
Training Day
The Perks of Being a Wallflower
Pleasantville
A Prairie Home Companion
Talk to Her
Rebecca
The Fifth Element
The Hunchback of Notre Dame
Curse of the Golden Flower
Little Nicky
Program:
function: Find
inputs: Jess Harnell
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Little Nicky
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: The Perks of Being a Wallflower
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Little Nicky" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jess Harnell" .   } UNION { ?e <pred:name> "The Perks of Being a Wallflower" . ?e <genre> ?e_2 . ?e_2 <pred:name> "drama film" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Perks of Being a Wallflower