Question: What film has a cast member named David Zucker (who is the director of Scary Movie 4) and cost under 250000000 United States dollars?
Choices:
Pleasantville
Airplane!
The Fifth Element
Sky Captain and the World of Tomorrow
A Prairie Home Companion
Training Day
Scary Movie 4
Rebecca
The Incredible Hulk
Talk to Her
Answer: Airplane!
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David Zucker" . ?e_2 <director> ?e_1 . ?e_2 <pred:name> "Scary Movie 4" .  ?e <cost> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> ?v . FILTER ( ?v < "250000000"^^xsd:double ) .  }
Program:
function: Find
inputs: Scary Movie 4
function: Relate
dependencies: 0
inputs: director
forward
function: Find
inputs: David Zucker
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: film
function: FindAll
function: FilterNum
dependencies: 6
inputs: cost
250000000 United States dollar
<
function: FilterConcept
dependencies: 7
inputs: film
function: And
dependencies: 5
8
function: What
dependencies: 9