Information about a drug or metabolite based on Reactome ID, celluar location in GO terms and ID from ChEBI database

Database: 
Statement: 

Display information about ID Reactome, cellular location in GO terms and ID from CheBi based on a drug or metabolite $metaboliteordrug$ (e.g. ADP) .Display a maximum of $number$ (e.g. 100) results.

Query: 
select distinct ?Name ?ID_Reactome ?GO_cellularLocation ?ID_Chebi where { ?s<http://www.w3.org/1999/02/22-rdf-syntax-ns#type><http://www.biopax.org/release/biopax-level3.owl#SmallMolecule> . ?s<http://www.biopax.org/release/biopax-level3.owl#comment>?ID_Reactome . ?s<http://www.biopax.org/release/biopax-level3.owl#displayName>?Name . ?s<http://www.biopax.org/release/biopax-level3.owl#cellularLocation>?GO_cellularLocation . ?s<http://www.biopax.org/release/biopax-level3.owl#entityReference>?ID_Chebi . Filter regex (?Name, "??metaboliteordrug", "i") . } Limit ??number