Question: Which had the smaller budget, Pretty Woman or The X-Files (the one whose genre is action film)?
Choices:
Pretty Woman
The Hunchback of Notre Dame
Pleasantville
Talk to Her
A Prairie Home Companion
The Towering Inferno
The X-Files
Training Day
The Fifth Element
Rebecca
Answer: Pretty Woman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pretty Woman" .  } UNION { ?e <pred:name> "The X-Files" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } ?e <budget> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Pretty Woman
function: Find
inputs: action film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: The X-Files
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: budget
less