Question: Is the release date prior to 2011 in the release region Sweden for Out of Africa whose genre is film based on literature?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:name> "Out of Africa" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2011 ) . [ <pred:fact_h> ?e ; <pred:fact_r> <publication_date> ; <pred:fact_t> ?pv ] <place_of_publication> ?qpv . ?qpv <pred:value> "Sweden" .  }
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Out of Africa
function: And
dependencies: 1
2
function: QueryAttrUnderCondition
dependencies: 3
inputs: publication date
place of publication
Sweden
function: VerifyYear
dependencies: 4
inputs: 2011
<