Components of a pathway, step interactions, metabolites on the letf and right of step interactions

Statement: 

Display components of a pathway, step interactions, metabolites on the letf and right of step interactions based on an introduced metabolite included in the pathway (eg. lysine) $metabolite$. Display a maximum of (eg.100) $number$ results.

Query: 
select distinct ?name ?LEFT_name ?RIGHT_name where { ?path a <http://www.biopax.org/release/biopax-level2.owl#pathway> . ?path <http://www.biopax.org/release/biopax-level2.owl#NAME> ?name . ?inter <http://www.biopax.org/release/biopax-level2.owl#LEFT> ?LEFT . ?inter <http://www.biopax.org/release/biopax-level2.owl#RIGHT> ?RIGHT . ?name bif:contains "'??metabolite'" . ?LEFT ?p ?o1 . ?o1 <http://www.biopax.org/release/biopax-level2.owl#NAME>?LEFT_name . ?RIGHT ?p ?o2 . ?o2 <http://www.biopax.org/release/biopax-level2.owl#NAME>?RIGHT_name . } Limit ??number