Question: How many fictional universes are the narrative location of Doctor Who (the one that origins from United States of America) or is the fictional universe described in Buffy the Vampire Slayer (the one whose publication date is 1992-01-01)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional universe" .  { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "Doctor Who" . ?e_1 <country_of_origin> ?e_2 . ?e_2 <pred:name> "United States of America" .  } UNION { ?e <fictional_universe_described_in> ?e_1 . ?e_1 <pred:name> "Buffy the Vampire Slayer" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "1992-01-01"^^xsd:date .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Doctor Who
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
forward
function: FilterConcept
dependencies: 4
inputs: fictional universe
function: Find
inputs: Buffy the Vampire Slayer
function: FilterDate
dependencies: 6
inputs: publication date
1992-01-01
=
function: Relate
dependencies: 7
inputs: fictional universe described in
backward
function: FilterConcept
dependencies: 8
inputs: fictional universe
function: Or
dependencies: 5
9
function: Count
dependencies: 10