Display all pathways and reactions given a product name and a sustrate name.

Database: 
Statement: 

Display all pathways and reactions given a product $aProduct$ (e.g. methanol) and a sustrate name $aSustrate$ (e.g. formaldehyde) . Limit of entries $number$

Query: 
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX bio2rdf: <http://bio2rdf.org/ns/bio2rdf#> PREFIX kegg: <http://bio2rdf.org/kegg_vocabulary:> SELECT distinct ?pathwaylabel ?reactionlabel ?reactionurl ?pathwayurl where { ?reaction ?r kegg:Reaction . ?reaction bio2rdf:url ?reactionurl . ?reaction rdfs:label ?reactionlabel . ?pathway kegg:xReaction ?reaction . ?pathway rdfs:label ?pathwaylabel . ?pathway bio2rdf:url ?pathwayurl . FILTER CONTAINS ( LCASE(str(?reactionlabel)), LCASE("??aProduct")) . FILTER CONTAINS ( LCASE(str(?reactionlabel)), LCASE("??aSustrate")) } limit ??number