Get all ontology terms (owl:Class) from the HPO ontology according to the name introduced

Database: 
Statement: 

Get all ontology terms (owl:Class) from the HPO ontology ontology according to the introduced name $label$ (e.g., Middle phalanx, Hypoplasia of the ovary) A limit of resuls per page $number$ (e.g., 10)

Query: 
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?root ?label FROM <http://bioportal.bioontology.org/ontologies/HP> WHERE { ?root a owl:Class . ?root rdfs:label ?label . FILTER regex (?label, "??label", "i") OPTIONAL { ?root rdfs:subClassOf ?super } } limit ??number