             ) AS cmd,
             lower(item_group_oid) AS relname,
             22 AS suborder
-            FROM dm.response_set_labels AS drsl
+            FROM response_set_labels AS drsl
             INNER JOIN dm_metadata_study AS dms
                 ON drsl.study_name = dms.study_name
             WHERE 
                 EXISTS (
                     SELECT
                         item_oid
-                    FROM dm.metadata_crf_ig_item AS mcii
+                    FROM metadata_crf_ig_item AS mcii
                     WHERE
                         drsl.item_oid = mcii.item_oid
                         AND mcii.item_data_type = 'INT'

                $line$quietly format `r(varlist)' %20s$line$,
                lower(item_group_oid) AS relname,
                25 AS suborder
            FROM dm.metadata_crf_ig_item AS mcii
            INNER JOIN dm_metadata_study AS dms
                ON mcii.study_name = dms.study_name
        ), item_group_rows AS (

        ), dm_metadata_study AS (
            SELECT
                study_name
            FROM metadata_study
            WHERE study_name_clean = filter_study_name_schema
        ), label_cmds AS (
        
