Question: How many Dutch provinces correspond to ISO 3166-2 code NL-GR or were founded sometime other than 1815?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of the Netherlands" .  { ?e <ISO_3166-2_code> ?pv . ?pv <pred:value> "NL-GR" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1815 ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
NL-GR
function: FilterConcept
dependencies: 1
inputs: province of the Netherlands
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1815
!=
function: FilterConcept
dependencies: 4
inputs: province of the Netherlands
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 5