Question: Is 2008 not the year of release of the single whose lyrics are written by David Bowie (whose genre is hard rock)?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "single" . ?e <lyrics_by> ?e_1 . ?e_1 <pred:name> "David Bowie" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "hard rock" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2008 ) .  }
Program:
function: Find
inputs: hard rock
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: David Bowie
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: lyrics by
backward
function: FilterConcept
dependencies: 4
inputs: single
function: QueryAttr
dependencies: 5
inputs: publication date
function: VerifyYear
dependencies: 6
inputs: 2008
!=