Question: How many plays are authored by William Shakespeare (who influenced Margaret Atwood) or have a publication date that is not in 1991?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "play" .  { ?e <author> ?e_1 . ?e_1 <pred:name> "William Shakespeare" . ?e_2 <influenced_by> ?e_1 . ?e_2 <pred:name> "Margaret Atwood" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1991 ) .  } }
Program:
function: Find
inputs: Margaret Atwood
function: Relate
dependencies: 0
inputs: influenced by
forward
function: Find
inputs: William Shakespeare
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: author
backward
function: FilterConcept
dependencies: 4
inputs: play
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
1991
!=
function: FilterConcept
dependencies: 7
inputs: play
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 13