Question: How many different taxonomic ranks have a OSM tag or key of Key:species or that have a taxon rank of Poaceae?
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> "taxonomic rank" .  { ?e <OSM_tag_or_key> ?pv . ?pv <pred:value> "Key:species" .  } UNION { ?e_1 <taxon_rank> ?e . ?e_1 <pred:name> "Poaceae" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: OSM tag or key
Key:species
function: FilterConcept
dependencies: 1
inputs: taxonomic rank
function: Find
inputs: Poaceae
function: Relate
dependencies: 3
inputs: taxon rank
forward
function: FilterConcept
dependencies: 4
inputs: taxonomic rank
function: Or
dependencies: 2
5
function: Count
dependencies: 6