Display all disease-drug associations stored in PharmGKB database

Database: 
Statement: 
Display all haplotype-drug associations stored in PharmGKB database according to the term introduced $term$ (e.g.clozapine). A limit of results per page $number$ (e.g.1000)
Query: 
select ?label ?drug ?haplotype ?drug_name ?haplotype_name where{ ?s<http://www.w3.org/1999/02/22-rdf-syntax-ns#type><http://bio2rdf.org/pharmgkb_vocabulary:haplotype-drug-Association> . ?s<http://www.w3.org/2000/01/rdf-schema#label>?label . ?label bif:contains "'??term'" . OPTIONAL{ ?s<http://bio2rdf.org/pharmgkb_vocabulary:drug>?drug . ?drug<http://purl.org/dc/terms/title>?drug_name . ?s<http://bio2rdf.org/pharmgkb_vocabulary:haplotype>?haplotype . ?haplotype<http://purl.org/dc/terms/identifier>?haplotype_name . } } limit ??number