-- DBMS: snowflake
create or replace TABLE AUXILIARY_METADATA (
	"collection_name" VARCHAR(16777216),
	"collection_id" VARCHAR(16777216),
	"collection_timestamp" NUMBER(38,0),
	"collection_hash" VARCHAR(16777216),
	"collection_init_idc_version" NUMBER(38,0),
	"collection_revised_idc_version" NUMBER(38,0),
	"submitter_case_id" VARCHAR(16777216),
	"idc_case_id" VARCHAR(16777216),
	"patient_hash" VARCHAR(16777216),
	"patient_init_idc_version" NUMBER(38,0),
	"patient_revised_idc_version" NUMBER(38,0),
	"StudyInstanceUID" VARCHAR(16777216),
	"study_uuid" VARCHAR(16777216),
	"study_instances" NUMBER(38,0),
	"study_hash" VARCHAR(16777216),
	"study_init_idc_version" NUMBER(38,0),
	"study_revised_idc_version" NUMBER(38,0),
	"study_final_idc_version" NUMBER(38,0),
	"SeriesInstanceUID" VARCHAR(16777216),
	"series_uuid" VARCHAR(16777216),
	"series_gcs_url" VARCHAR(16777216),
	"series_aws_url" VARCHAR(16777216),
	"source_doi" VARCHAR(16777216),
	"source_url" VARCHAR(16777216),
	"series_instances" NUMBER(38,0),
	"series_hash" VARCHAR(16777216),
	"access" VARCHAR(16777216),
	"series_init_idc_version" NUMBER(38,0),
	"series_revised_idc_version" NUMBER(38,0),
	"series_final_idc_version" NUMBER(38,0),
	"SOPInstanceUID" VARCHAR(16777216),
	"instance_uuid" VARCHAR(16777216),
	"gcs_url" VARCHAR(16777216),
	"gcs_bucket" VARCHAR(16777216),
	"aws_url" VARCHAR(16777216),
	"aws_bucket" VARCHAR(16777216),
	"instance_size" NUMBER(38,0),
	"instance_hash" VARCHAR(16777216),
	"instance_init_idc_version" NUMBER(38,0),
	"instance_revised_idc_version" NUMBER(38,0),
	"instance_final_idc_version" NUMBER(38,0),
	"license_url" VARCHAR(16777216),
	"license_long_name" VARCHAR(16777216),
	"license_short_name" VARCHAR(16777216),
	"tcia_api_collection_id" VARCHAR(16777216),
	"idc_webapp_collection_id" VARCHAR(16777216)
);

INSERT INTO "IDC"."IDC_V17"."AUXILIARY_METADATA" (series_hash, collection_revised_idc_version, license_long_name, series_revised_idc_version, source_doi, instance_revised_idc_version, collection_timestamp, series_instances, collection_name, SOPInstanceUID, idc_case_id, tcia_api_collection_id, instance_hash, patient_init_idc_version, collection_hash, collection_id, access, series_gcs_url, gcs_url, StudyInstanceUID, study_revised_idc_version, study_final_idc_version, instance_final_idc_version, source_url, patient_hash, idc_webapp_collection_id, gcs_bucket, instance_uuid, series_final_idc_version, series_init_idc_version, license_url, instance_size, license_short_name, study_instances, instance_init_idc_version, study_init_idc_version, series_uuid, submitter_case_id, collection_init_idc_version, study_hash, aws_bucket, series_aws_url, SeriesInstanceUID, patient_revised_idc_version, aws_url, study_uuid) VALUES ('1ecfadceef1b36497a2c2e6bb1a4c173', 10, 'Creative Commons Attribution 4.0 International License', 10, '10.7937/tcia.kk02-6d95', 10, 1699840988801375, 53, 'ACRIN-6698', '1.3.6.1.4.1.14519.5.2.1.7695.4164.784850890634822414222832957135', '597dd9e0-b18f-45ec-8f9f-fde45f927978', 'ACRIN-6698', 'd67c414bbb51fa3292567a22231290b5', 10, '75b0cee99d4b433f08ffec955ee4c70c', 'acrin_6698', 'Public', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/f4cce939-f17b-479a-927f-afe61415704b.dcm', '1.3.6.1.4.1.14519.5.2.1.7695.4164.205849350381621543824875482470', 10, 0, 0, 'https://doi.org/10.7937/tcia.kk02-6d95', 'c6398ab064dbef9673a382e9a00e54b3', 'acrin_6698', 'public-datasets-idc', 'f4cce939-f17b-479a-927f-afe61415704b', 0, 10, 'https://creativecommons.org/licenses/by/4.0/', 530510, 'CC BY 4.0', 1906, 10, 10, '5094daf6-7d83-435f-abf2-eb5f47675b66', 'ACRIN-6698-317641', 10, '01c67bf32efb09f97610422c4f05e91f', 'idc-open-data', 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/', '1.3.6.1.4.1.14519.5.2.1.7695.4164.100929779510512848238254512097', 10, 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/f4cce939-f17b-479a-927f-afe61415704b.dcm', '79bed30c-99bb-466c-90b1-1b4347d02c9b'), ('1ecfadceef1b36497a2c2e6bb1a4c173', 10, 'Creative Commons Attribution 4.0 International License', 10, '10.7937/tcia.kk02-6d95', 10, 1699840988801375, 53, 'ACRIN-6698', '1.3.6.1.4.1.14519.5.2.1.7695.4164.166527479339466134062467856450', '597dd9e0-b18f-45ec-8f9f-fde45f927978', 'ACRIN-6698', '845ce218ab8ba45513b3e6c99a91fdd5', 10, '75b0cee99d4b433f08ffec955ee4c70c', 'acrin_6698', 'Public', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/526a80c9-dd6e-40ec-b1af-f774a527c172.dcm', '1.3.6.1.4.1.14519.5.2.1.7695.4164.205849350381621543824875482470', 10, 0, 0, 'https://doi.org/10.7937/tcia.kk02-6d95', 'c6398ab064dbef9673a382e9a00e54b3', 'acrin_6698', 'public-datasets-idc', '526a80c9-dd6e-40ec-b1af-f774a527c172', 0, 10, 'https://creativecommons.org/licenses/by/4.0/', 530512, 'CC BY 4.0', 1906, 10, 10, '5094daf6-7d83-435f-abf2-eb5f47675b66', 'ACRIN-6698-317641', 10, '01c67bf32efb09f97610422c4f05e91f', 'idc-open-data', 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/', '1.3.6.1.4.1.14519.5.2.1.7695.4164.100929779510512848238254512097', 10, 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/526a80c9-dd6e-40ec-b1af-f774a527c172.dcm', '79bed30c-99bb-466c-90b1-1b4347d02c9b'), ('1ecfadceef1b36497a2c2e6bb1a4c173', 10, 'Creative Commons Attribution 4.0 International License', 10, '10.7937/tcia.kk02-6d95', 10, 1699840988801375, 53, 'ACRIN-6698', '1.3.6.1.4.1.14519.5.2.1.7695.4164.227440160180778953226675332234', '597dd9e0-b18f-45ec-8f9f-fde45f927978', 'ACRIN-6698', '7cdb66a0e703efaa63b694940b520de1', 10, '75b0cee99d4b433f08ffec955ee4c70c', 'acrin_6698', 'Public', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/3c009ef4-cb40-4b6b-af94-af78efd232c4.dcm', '1.3.6.1.4.1.14519.5.2.1.7695.4164.205849350381621543824875482470', 10, 0, 0, 'https://doi.org/10.7937/tcia.kk02-6d95', 'c6398ab064dbef9673a382e9a00e54b3', 'acrin_6698', 'public-datasets-idc', '3c009ef4-cb40-4b6b-af94-af78efd232c4', 0, 10, 'https://creativecommons.org/licenses/by/4.0/', 530512, 'CC BY 4.0', 1906, 10, 10, '5094daf6-7d83-435f-abf2-eb5f47675b66', 'ACRIN-6698-317641', 10, '01c67bf32efb09f97610422c4f05e91f', 'idc-open-data', 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/', '1.3.6.1.4.1.14519.5.2.1.7695.4164.100929779510512848238254512097', 10, 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/3c009ef4-cb40-4b6b-af94-af78efd232c4.dcm', '79bed30c-99bb-466c-90b1-1b4347d02c9b'), ('1ecfadceef1b36497a2c2e6bb1a4c173', 10, 'Creative Commons Attribution 4.0 International License', 10, '10.7937/tcia.kk02-6d95', 10, 1699840988801375, 53, 'ACRIN-6698', '1.3.6.1.4.1.14519.5.2.1.7695.4164.267897853011778859581783671016', '597dd9e0-b18f-45ec-8f9f-fde45f927978', 'ACRIN-6698', '1ee7439a2ce1218e827e62f558e80bcd', 10, '75b0cee99d4b433f08ffec955ee4c70c', 'acrin_6698', 'Public', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/2337058b-9410-4954-8762-157fb661da14.dcm', '1.3.6.1.4.1.14519.5.2.1.7695.4164.205849350381621543824875482470', 10, 0, 0, 'https://doi.org/10.7937/tcia.kk02-6d95', 'c6398ab064dbef9673a382e9a00e54b3', 'acrin_6698', 'public-datasets-idc', '2337058b-9410-4954-8762-157fb661da14', 0, 10, 'https://creativecommons.org/licenses/by/4.0/', 530512, 'CC BY 4.0', 1906, 10, 10, '5094daf6-7d83-435f-abf2-eb5f47675b66', 'ACRIN-6698-317641', 10, '01c67bf32efb09f97610422c4f05e91f', 'idc-open-data', 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/', '1.3.6.1.4.1.14519.5.2.1.7695.4164.100929779510512848238254512097', 10, 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/2337058b-9410-4954-8762-157fb661da14.dcm', '79bed30c-99bb-466c-90b1-1b4347d02c9b'), ('1ecfadceef1b36497a2c2e6bb1a4c173', 10, 'Creative Commons Attribution 4.0 International License', 10, '10.7937/tcia.kk02-6d95', 10, 1699840988801375, 53, 'ACRIN-6698', '1.3.6.1.4.1.14519.5.2.1.7695.4164.331545318411104179804799741788', '597dd9e0-b18f-45ec-8f9f-fde45f927978', 'ACRIN-6698', 'b977c83fd97351df12ed99295cb7c562', 10, '75b0cee99d4b433f08ffec955ee4c70c', 'acrin_6698', 'Public', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/', 'gs://public-datasets-idc/5094daf6-7d83-435f-abf2-eb5f47675b66/ebd07430-2af7-4279-98f2-77c959ba5e42.dcm', '1.3.6.1.4.1.14519.5.2.1.7695.4164.205849350381621543824875482470', 10, 0, 0, 'https://doi.org/10.7937/tcia.kk02-6d95', 'c6398ab064dbef9673a382e9a00e54b3', 'acrin_6698', 'public-datasets-idc', 'ebd07430-2af7-4279-98f2-77c959ba5e42', 0, 10, 'https://creativecommons.org/licenses/by/4.0/', 530512, 'CC BY 4.0', 1906, 10, 10, '5094daf6-7d83-435f-abf2-eb5f47675b66', 'ACRIN-6698-317641', 10, '01c67bf32efb09f97610422c4f05e91f', 'idc-open-data', 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/', '1.3.6.1.4.1.14519.5.2.1.7695.4164.100929779510512848238254512097', 10, 's3://idc-open-data/5094daf6-7d83-435f-abf2-eb5f47675b66/ebd07430-2af7-4279-98f2-77c959ba5e42.dcm', '79bed30c-99bb-466c-90b1-1b4347d02c9b');