44_Select_the_descendant_reactions_of_a_given_reaction_in_the_Rhea_hierarchy: Select the descendant reaction(s) of a given reaction (RHEA:11628) in the Rhea hierarchy, (using rdfs:subClassOf+)

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction ?equation ?descendantReaction ?descendantEquation WHERE { BIND(rh:11628 AS ?reaction) ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:equation ?equation . ?descendantReaction rdfs:subClassOf rh:Reaction . ?descendantReaction rh:status rh:Approved . ?descendantReaction rdfs:subClassOf+ ?reaction . ?descendantReaction rh:equation ?descendantEquation . }Use

45_Select_the_parent_reactions_of_a_given_reaction: Select the parent reaction(s) of a given reaction

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reactionChild ?childEquation ?reactionParent ?parentEquation WHERE { BIND (rh:39155 AS ?reactionChild) ?reactionChild rdfs:subClassOf rh:Reaction . ?reactionChild rh:status rh:Approved . ?reactionChild rh:equation ?childEquation . ?reactionParent rdfs:subClassOf rh:Reaction . ?reactionParent rh:status rh:Approved . ?reactionParent rh:equation ?parentEquation . ?reactionChild rdfs:subClassOf ?reactionParent . }Use

46_Number_of_IsA_relationships: Number of IsA relationships, distinct child reactions and distinct parent reactions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT (COUNT(?reactionChild) AS ?isARelationCount) (COUNT(distinct ?reactionChild) AS ?uniqueReactionChildCount) (COUNT(distinct ?reactionParent) AS ?uniqueReactionParentCount) WHERE { ?reactionChild rdfs:subClassOf rh:Reaction . ?reactionChild rh:status rh:Approved . ?reactionParent rdfs:subClassOf rh:Reaction . ?reactionParent rh:status rh:Approved . ?reactionChild rdfs:subClassOf ?reactionParent . }Use

47_Select_all_children_reactions_and_give_the_number_of_parent_reactions: Select all children reactions and give the number of parent reactions.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT (count(?reactionChild) as ?isARelationCount) (count(distinct ?reactionChild) as ?uniqueReactionChildCount) (count(distinct ?reactionParent) as ?uniqueReactionParentCount) WHERE { ?reactionChild rdfs:subClassOf rh:Reaction . ?reactionChild rh:status rh:Approved . ?reactionParent rdfs:subClassOf rh:Reaction . ?reactionParent rh:status rh:Approved . ?reactionChild rdfs:subClassOf ?reactionParent . }Use

48_Select_all_reactions_with_at_least_one_parent_reaction_and_give_the_number_ancestor_reactions: Select all reactions with at least one parent reaction and give the number ancestor reactions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?reaction (count(?parentReaction) as ?parentReactionCount) WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rdfs:subClassOf ?parentReaction . ?parentReaction rdfs:subClassOf rh:Reaction . ?parentReaction rh:status rh:Approved . } GROUP BY ?reaction ORDER BY DESC (?parentReactionCount) ?reactionUse

49_Select_parent_reactions_give_the_number_of_child_and_descendant_reactions: Select parent reactions, give the number of child and descendant reactions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction (count(?ancestorReaction) as ?ancestorReactionCount) WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?ancestorReaction rdfs:subClassOf rh:Reaction . ?ancestorReaction rh:status rh:Approved . ?reaction rdfs:subClassOf+ ?ancestorReaction . } GROUP BY ?reaction ORDER BY (count(?ancestorReaction))Use

50_Number_of_reactions_that_have_parent_and_child_reactions: Number of reactions that have parent and child reactions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction (count(distinct ?reactionChild) as ?reactionChildCount) (count(distinct ?reactionDescendant) as ?reactionDescendantCount) ?equation WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:equation ?equation . ?reactionChild rdfs:subClassOf rh:Reaction . ?reactionChild rh:status rh:Approved . ?reactionDescendant rdfs:subClassOf rh:Reaction . ?reactionDescendant rh:status rh:Approved . ?reaction ^rdfs:subClassOf ?reactionChild . ?reaction ^rdfs:subClassOf+ ?reactionDescendant . } GROUP BY ?reaction ?equation ORDER BY DESC (count(?reactionChild))Use

51_Select_all_reactions_that_have_parents_and_children_reactions: Select all reactions that have parents and children reactions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT (count(distinct ?reaction) as ?reactionCount) WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?childReaction rdfs:subClassOf rh:Reaction . ?childReaction rh:status rh:Approved . ?parentReaction rdfs:subClassOf rh:Reaction . ?parentReaction rh:status rh:Approved . ?reaction rdfs:subClassOf ?parentReaction . ?reaction ^rdfs:subClassOf ?childReaction . }Use

52_List_all_small_molecules: List all small molecules

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?compound ?compoundName WHERE { ?compound rdfs:subClassOf rh:SmallMolecule . ?compound rh:name ?compoundName } ORDER BY (?compound)Use

53_List_all_polymers: List all polymers

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?compound ?compoundName WHERE { ?compound rdfs:subClassOf rh:Polymer . ?compound rh:name ?compoundName } ORDER BY (?compound)Use

54_List_all_generic_compounds: List all generic compounds

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?compound ?compoundName WHERE { ?compound rdfs:subClassOf rh:Polymer . ?compound rh:name ?compoundName . } ORDER BY (?compound)Use

55_Number_of_compounds_according_to_their_category: Number of compounds according to their category (Small molecule, Generic compound, Polymer)

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?compoundCategory ?compoundCategoryLabel?genericCategory WHERE { VALUES (?compoundCategory) {(rh:GenericCompound) (rh:Polymer) (rh:SmallMolecule)} ?compoundCategory rdfs:subClassOf rh:Compound . ?compoundCategory rdfs:label ?compoundCategoryLabel . } ORDER BY ?genericCategory DESC(?compound)Use

56_Distribution_of_GenericParticipant: Distribution of GenericParticipant

PREFIX rh: <http://rdf.rhea-db.org/> PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> SELECT ?genericSubClass ?labelGenericSubClass (count(?genericParticipant) as ?countGenericParticipant) WHERE { ?genericSubClass rdfs:subClassOf rh:GenericParticipant . ?genericSubClass rdfs:label ?labelGenericSubClass . ?genericParticipant rdfs:subClassOf* ?genericSubClass . } GROUP BY ?genericSubClass ?labelGenericSubClassUse

57_Give_me_the_list_of_Rhea_generics: Give me the list of Rhea generics, type polypeptide (rh:GenericPolypeptideParticipant)

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?genericSubClass ?labelGenericSubClass (count(?genericParticipant) as ?countGenericParticipant) WHERE { ?genericSubClass rdfs:subClassOf rh:GenericParticipant . ?genericSubClass rdfs:label ?labelGenericSubClass . ?genericParticipant rdfs:subClassOf* ?genericSubClass . } GROUP BY ?genericSubClass ?labelGenericSubClassUse

58_Give_me_the_reactions_involving_a_given_Rhea_generic: Give me the reactions involving a given Rhea generic (GENERIC:11964, "reduced [NADPH—hemoprotein reductase]")

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?genericSubClass ?labelGenericSubClass (count(?genericParticipant) as ?countGenericParticipant) WHERE { ?genericSubClass rdfs:subClassOf rh:GenericParticipant . ?genericSubClass rdfs:label ?labelGenericSubClass . ?genericParticipant rdfs:subClassOf* ?genericSubClass . } GROUP BY ?genericSubClass ?labelGenericSubClassUse

59_Select_reaction_participants_for_a_given_reaction_ID._Display_their_coefficient_and_their_name: Select reaction participants for a given reaction ID. Display their coefficient and their name.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh: <http://rdf.rhea-db.org/> SELECT ?genericCompound ?genericCompoundName ?reaction ?equation WHERE { ?genericCategory rdfs:subClassOf rh:GenericCompound . ?genericCompound rdfs:subClassOf ?genericCategory . ?genericCompound rh:name ?genericCompoundName . ?genericCompound rh:accession ?ac . FILTER (?ac='GENERIC:11964') . ?participant rh:compound ?genericCompound . ?reactionSide rh:contains ?participant . ?reaction rh:side ?reactionSide . ?reaction rh:equation ?equation . }Use

60_Select_the_number_of_approved_reactions_using_CHEBI_29985_as_small_molecule_participant: Select the number of approved reactions using CHEBI:29985 (L-glutamate) as small molecule participant

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction ?reactionSide ?coefficient ?participant ?name WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:side ?reactionSide . ?contains rdfs:subPropertyOf rh:contains . ?contains rh:coefficient ?coefficient . ?reactionSide ?contains ?participant . ?participant rh:compound ?compound . ?compound rh:name ?name . FILTER (?reaction=rh:11680) } ORDER BY ?reactionSideUse

61_Select_all_approved_reactions_using_CHEBI_29985_as_small_molecule_participant: Select all approved reactions using CHEBI:29985 (L-glutamate) as small molecule participant

PREFIX CHEBI: <http://purl.obolibrary.org/obo/CHEBI_> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT (count(?reaction) as ?reactionCount) WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:side ?reactionSide . ?reactionSide rh:contains ?smallMolecule . ?smallMolecule rdfs:subClassOf+ CHEBI:29985 }Use

62_Select_the_number_of_approved_reactions_using_L-glutamine_AND_L-glutamate_in_different_reaction_sides: Select the number of approved reactions using L-glutamine (CHEBI:29985) AND L-glutamate (CHEBI:58359) in different reaction sides

PREFIX CHEBI: <http://purl.obolibrary.org/obo/CHEBI_> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction ?reactionEquation WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:equation ?reactionEquation . ?reaction rh:side ?reactionSide . ?reactionSide rh:contains ?participant . ?participant rh:compound ?compound . ?compound rh:chebi CHEBI:29985 } # There are several way to indicate that the reaction sides must be different: # - ?reactionSide1 rh:transformableTo ?reactionSide2 # FILTER (?reactionSide1 != ?reactionSide2) #It is better to use rh:transformableTo predicate.Use

63_Select_all_approved_reactions_using_L-glutamine_AND_L-glutamate_in_different_reaction_sides: Select all approved reactions using L-glutamine (CHEBI:29985) AND L-glutamate (CHEBI:58359) in different reaction sides

PREFIX CHEBI: <http://purl.obolibrary.org/obo/CHEBI_> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT (count(?reaction) as ?reactionCount) WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:side ?reactionSide1 . ?reactionSide1 rh:contains ?participant1 . ?participant1 rh:compound ?compound1 . ?compound1 rh:chebi CHEBI:29985 . ?reaction rh:side ?reactionSide2 . ?reactionSide2 rh:contains ?participant2 . ?participant2 rh:compound ?compound2 . ?compound2 rh:chebi CHEBI:58359 . ?reactionSide1 rh:transformableTo ?reactionSide2 }Use

64_Number_of_reaction_participants_per_reaction_side: Distribution: number of reaction participants per reaction Side

PREFIX CHEBI: <http://purl.obolibrary.org/obo/CHEBI_> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction ?reactionEquation WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:equation ?reactionEquation . ?reaction rh:side ?reactionSide1 . ?reactionSide1 rh:contains ?participant1 . ?participant1 rh:compound ?compound1 . ?compound1 rh:chebi CHEBI:29985 . ?reaction rh:side ?reactionSide2 . ?reactionSide2 rh:contains ?participant2 . ?participant2 rh:compound ?compound2 . ?compound2 rh:chebi CHEBI:58359 . ?reactionSide1 rh:transformableTo ?reactionSide2 . } ORDER BY ?reactionUse

65_Number_of_reaction_participants_per_reaction_side: Distribution: number of reaction participants per reaction Side

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction ?reactionSide1 (count(distinct ?participant1) as ?side1ParticipantCount) ?reactionSide2 (count(distinct ?participant2) as ?side2ParticipantCount) WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:side ?reactionSide1 . ?reactionSide1 rh:contains ?participant1 . ?reaction rh:side ?reactionSide2 . ?reactionSide2 rh:contains ?participant2 . ?reactionSide1 rh:transformableTo ?reactionSide2 } GROUP BY ?reaction ?reactionSide1 ?reactionSide2 ORDER BY ?reactionUse

66_Select_all_compounds_and_count_their_occurrence_in_Rhea_reactions: Select all compounds and count their occurrence in Rhea reactions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?reaction ?reactionSide1 (count(distinct ?participant1) as ?side1ParticipantCount) ?reactionSide2 (count(distinct ?participant2) as ?side2ParticipantCount) WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:side ?reactionSide1 . ?reactionSide1 rh:contains ?participant1 . ?reactionSide1 rh:curatedOrder ?curatedOrder1 . ?reaction rh:side ?reactionSide2 . ?reactionSide2 rh:contains ?participant2 . ?reactionSide2 rh:curatedOrder ?curatedOrder2 . ?reactionSide1 rh:transformableTo ?reactionSide2 . FILTER (?curatedOrder1 < ?curatedOrder2) . } GROUP BY ?reaction ?reactionSide1 ?reactionSide2 ORDER BY DESC(?side1ParticipantCount) DESC(?side2ParticipantCount) ?reactionUse

67_Select_all_compounds_and_count_their_occurrence_in_Rhea_reactions: Select all compounds and count their occurrence in Rhea reactions

PREFIX rh: <http://rdf.rhea-db.org/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?reactionParticipantAc ?chebi (count(distinct ?reaction) as ?reactionCount) ?reactionParticipantName WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:side ?reactionSide . ?reactionSide rh:contains ?participant . ?participant rh:compound ?compound . OPTIONAL { ?compound rh:chebi ?chebi . } ?compound rh:name ?reactionParticipantName . ?compound rh:accession ?reactionParticipantAc . } GROUP BY ?reactionParticipantAc ?chebi ?reactionParticipantName ORDER BY DESC(?reactionCount)Use

68_Select_reaction_participants_that_appear_in_only_one_reaction: Select reaction participants that appear in only one reaction

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?compound ?compoundAc ?compoundName WHERE { ?reaction rdfs:subClassOf rh:Reaction . ?reaction rh:status rh:Approved . ?reaction rh:side ?reactionSide . ?reactionSide rh:contains ?participant . ?participant rh:compound ?compound . ?compound rh:name ?compoundName . ?compound rh:accession ?compoundAc . } GROUP BY ?compound ?compoundName ?compoundAc HAVING (count(distinct ?reaction) = 1) ORDER BY ?compoundAcUse

69_Select_all_the_direct_children_of_carbohydrate_in_the_ChEBI_ontology_used_in_Rhea_reaction_or_not: Select all the (direct) children of *carbohydrate* (CHEBI:16646) in the ChEBI ontology , used in Rhea reaction or not

PREFIX CHEBI: <http://purl.obolibrary.org/obo/CHEBI_> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rh:<http://rdf.rhea-db.org/> SELECT ?chebiChildCarbohydrate ?chebiLabel WHERE { ?chebiChildCarbohydrate rdfs:subClassOf CHEBI:16646 . ?chebiChildCarbohydrate rdfs:label ?chebiLabel . } ORDER BY ?chebiChildCarbohydrateUse