Question: Was the fairy tale Cinderella published earlier than 2010 in the USA?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "Cinderella" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "fairy tale" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2010 ) . [ <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: fairy tale
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Cinderella
function: And
dependencies: 1
2
function: QueryAttrUnderCondition
dependencies: 3
inputs: publication date
place of publication
United States of America
function: VerifyYear
dependencies: 4
inputs: 2010
<