 AND ARRAY ['S11436A8', 'S11436A6', 'S11436A9', 'S11438D0', 'S1143938', 'S114372C', 'S11437EB', 'S114372B', 'S11436A5', 'S11437E9']::char[]
       @> ancestors;*/
 
-CREATE OR REPLACE FUNCTION get_descendant_standard_nodes(standard_asn_id CHAR(8))
+CREATE OR REPLACE FUNCTION get_descendant_standards_nodes(standard_asn_id CHAR(8))
   RETURNS SETOF standards_nodes AS $$
   WITH RECURSIVE tree AS (
     SELECT

$$
LANGUAGE SQL;




$$
LANGUAGE SQL;

CREATE OR REPLACE FUNCTION get_ancestor_standards_nodes(standard_asn_id CHAR(8))
  RETURNS SETOF standards_nodes AS $$

    WITH RECURSIVE tree AS (
    SELECT
      asn_id,
