Question: How many contemporary folk musics have an inception time not in 2001 or origins from the Bahamas (the one whose nominal GDP is 6833220000 United States dollars)?
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> "contemporary folk music" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2001 ) .  } UNION { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Bahamas" . ?e_1 <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "6833220000"^^xsd:double .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
2001
!=
function: FilterConcept
dependencies: 1
inputs: contemporary folk music
function: Find
inputs: Bahamas
function: FilterNum
dependencies: 3
inputs: nominal GDP
6833220000 United States dollar
=
function: Relate
dependencies: 4
inputs: country of origin
backward
function: FilterConcept
dependencies: 5
inputs: contemporary folk music
function: Or
dependencies: 2
6
function: Count
dependencies: 7