Example of case-insensitive term with subclass relationship

Database: 
Statement: 

Example of case-insensitive term with subclass relationship according to the introduced subclasses $label1$ (e.g. MELANOMA) $label2$ (e.g., SKIN) </br> A limit of results per page $number$ (e.g. 10)

Query: 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT * FROM <http://bioportal.bioontology.org/ontologies/SNOMEDCT> FROM <http://bioportal.bioontology.org/ontologies/globals> WHERE { ?x rdfs:label ?label . ?x rdfs:subClassOf ?parent . ?parent rdfs:label ?parentLabel . FILTER (CONTAINS ( UCASE(str(?label)), "??label1") && CONTAINS ( UCASE(str(?parentLabel)), "??label2") ) }