Question: How many taxonomic ranks do we know the taxon rank of Micropterus salmoides or whose OSM tag or key is Key:genus    ?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "taxonomic rank" .  { ?e_1 <taxon_rank> ?e . ?e_1 <pred:name> "Micropterus salmoides" .  } UNION { ?e <OSM_tag_or_key> ?pv . ?pv <pred:value> "Key:genus" .  } }
Program:
function: Find
inputs: Micropterus salmoides
function: Relate
dependencies: 0
inputs: taxon rank
forward
function: FilterConcept
dependencies: 1
inputs: taxonomic rank
function: FindAll
function: FilterStr
dependencies: 3
inputs: OSM tag or key
Key:genus
function: FilterConcept
dependencies: 4
inputs: taxonomic rank
function: Or
dependencies: 2
5
function: Count
dependencies: 6