Question: Which has less cost, Tacoma (whose original language is English) or The Wrestler (which has Mickey Rourke as a cast member)?
Choices:
Rebecca
Training Day
Tacoma
A Prairie Home Companion
The Towering Inferno
The Fifth Element
Pleasantville
The Wrestler
Talk to Her
The Hunchback of Notre Dame
Answer: Tacoma
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tacoma" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "The Wrestler" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Mickey Rourke" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Tacoma
function: And
dependencies: 1
2
function: Find
inputs: Mickey Rourke
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Wrestler
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
less