Question: How many historical countries have a dissolution date, not in 1974 or claim Bahamas' (has a diplomatic relationship with the People's Republic of China), territory?
Choices:
22
23
24
25
26
27
28
29
30
31
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: dissolved, abolished or demolished
1974
!=
function: FilterConcept
dependencies: 1
inputs: historical country
function: Find
inputs: People's Republic of China
function: Relate
dependencies: 3
inputs: diplomatic relation
forward
function: Find
inputs: Bahamas
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: territory claimed by
backward
function: FilterConcept
dependencies: 7
inputs: historical country
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" .  { ?e <dissolved,_abolished_or_demolished> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1974 ) .  } UNION { ?e <territory_claimed_by> ?e_1 . ?e_1 <pred:name> "Bahamas" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "People's Republic of China" .  } }
Answer: 27