Question: Was Avatar (from the United States of America) not published in the United States of America in 2008?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "Avatar" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2008 ) . [ <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: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Avatar
function: And
dependencies: 1
2
function: QueryAttrUnderCondition
dependencies: 3
inputs: publication date
place of publication
United States of America
function: VerifyYear
dependencies: 4
inputs: 2008
!=