Samples treated with a compound of or a more specific

Database: 
Documentation: 
Samples treated with a compound (like alchool), or a more specific type. This is made through a query over the bioportal sparql endpoint (i.e., a federated query).
Statement: 
Samples treated with a compound of or a more specific $term$ (e.g. CHEBI_30879)
Al limit of results per page $number$ (e.g.12)
Query: 
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX obo: <http://purl.obolibrary.org/obo/> PREFIX efo: <http://www.ebi.ac.uk/efo/> PREFIX biosd-terms: <http://rdf.ebi.ac.uk/terms/biosd/> PREFIX pav: <http://purl.org/pav/2.0/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX sio: <http://semanticscience.org/resource/> SELECT DISTINCT ?smp ?pvLabel ?pvTypeLabel ?pvTypeClass { SERVICE <http://sparql.bioontology.org/ontologies/sparql/?apikey=c6ae1b27-9f86-4e3c-9dcf-087e1156eabe> { ?pvTypeClass rdfs:subClassOf <http://purl.obolibrary.org/obo/??term>; rdfs:label ?pvTypeLabel. } ?pvType a ?pvTypeClass. ?pv biosd-terms:has-bio-characteristic-type ?pvType; rdfs:label ?pvLabel. ?smp a biosd-terms:Sample; biosd-terms:has-bio-characteristic ?pv. } Limit ??number