Question: Was the literary work whose first line is "Harry Potter was a highly unusual boy in many ways" published outside of 1991?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" . ?e <first_line> ?pv_1 . ?pv_1 <pred:value> "Harry Potter was a highly unusual boy in many ways." . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1991 ) .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: first line
Harry Potter was a highly unusual boy in many ways.
function: FilterConcept
dependencies: 1
inputs: literary work
function: QueryAttr
dependencies: 2
inputs: publication date
function: VerifyYear
dependencies: 3
inputs: 1991
!=