Question: For the film whose script was written by Brian DePalma and published in the United States, was it published before 2009?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Brian De Palma" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2009 ) . [ <pred:fact_h> ?e ; <pred:fact_r> <publication_date> ; <pred:fact_t> ?pv ] <place_of_publication> ?qpv . ?qpv <pred:value> "United States of America" .  }
Program:
function: Find
inputs: Brian De Palma
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: FilterConcept
dependencies: 1
inputs: film
function: QueryAttrUnderCondition
dependencies: 2
inputs: publication date
place of publication
United States of America
function: VerifyYear
dependencies: 3
inputs: 2009
<
Answer: yes