nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.WORLD_TRADE_ORGANIZATION_TIMESERIES (
    PARTNER_GEO_ID TEXT,
    REPORTING_GEO_ID TEXT,
    VARIABLE_NAME TEXT,
    DATE DATE,
    UNIT TEXT,
    VARIABLE TEXT,
    VALUE FLOAT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."WORLD_TRADE_ORGANIZATION_TIMESERIES" (PARTNER_GEO_ID, REPORTING_GEO_ID, VARIABLE_NAME, DATE, UNIT, VARIABLE, VALUE) VALUES ('countryGroup/WORLD', 'country/HRV', 'Commercial services exports by sector and partner – annual: Road transport (Services - Extended Balance of Payments Classification (EBOPS 2010))', '2016-12-31', 'USD', '70deaa38619a2d6e1d4caa2bf0b801ec', 579000000.0), ('country/CAN', 'country/BOL', 'Bilateral imports by detailed HS codes (2,4,6 digit): Edible fruit and nuts; peel of citrus fruit or melons (Harmonized System)', '2005-12-31', 'USD', '078fc94ed8f83304cdbbb71f6b636fbe', 820.0), ('country/BGD', 'country/NAM', 'Bilateral imports by detailed HS codes (2,4,6 digit): Headgear and parts thereof (Harmonized System)', '2008-12-31', 'USD', 'ce245c329e9011f5e064748bcb2dba81', 2773.0), ('country/CHE', 'country/SGP', 'Commercial services imports by sector and partner – annual: Commercial services (Services - Extended Balance of Payments Classification (EBOPS 2010))', '2015-12-31', 'USD', 'a76aeabe20f05b63263e5d376007d60e', 4546000000.0), ('countryGroup/WORLD', 'country/CHE', 'Commercial services exports by sector and partner – annual: Freight (All modes of transport) (Services - Extended Balance of Payments Classification (EBOPS 2010))', '2016-12-31', 'USD', 'dda6e446a4fea6f92982bc1d8359d285', 7194000000.0);
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.US_DEPARTMENT_OF_AGRICULTURE_COMMODITIES_ATTRIBUTES (
    COMMODITY_TYPE TEXT,
    FREQUENCY TEXT,
    UNIT TEXT,
    MEASURE TEXT,
    VARIABLE_NAME TEXT,
    VARIABLE TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."US_DEPARTMENT_OF_AGRICULTURE_COMMODITIES_ATTRIBUTES" (COMMODITY_TYPE, FREQUENCY, UNIT, MEASURE, VARIABLE_NAME, VARIABLE) VALUES ('Cottonseed Oil', 'Weekly', 'Metric Tons', 'Outstanding Sales', 'Cottonseed Oil: Outstanding Sales', 'ESR_cottonseed_oil_outstanding_sales'), ('Rapeseed Meal', 'Annual', 'Metric Tons', 'Exports', 'Rapeseed Meal: Exports', 'PSD-0813600-088'), ('Peanut Meal', 'Annual', 'Metric Tons', 'Food Use Domestic Consumption', 'Peanut Meal: Food Use Domestic Consumption', 'PSD-0813200-149'), ('Mixed Grain', 'Annual', 'Metric Tons', 'Exports', 'Mixed Grain: Exports', 'PSD-0459900-088'), ('Inshell Basis Walnuts', 'Annual', 'Metric Tons', 'Ending Stocks', 'Inshell Basis Walnuts: Ending Stocks', 'PSD-0577901-176');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.UNITED_NATIONS_INDUSTRIAL_DEVELOPMENT_ORGANIZATION_ATTRIBUTES (
    MEASURE TEXT,
    VARIABLE TEXT,
    FREQUENCY TEXT,
    UNIT TEXT,
    ISIC_ECONOMIC_ACTIVITY TEXT,
    INDSTAT_VERSION TEXT,
    VARIABLE_NAME TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."UNITED_NATIONS_INDUSTRIAL_DEVELOPMENT_ORGANIZATION_ATTRIBUTES" (MEASURE, VARIABLE, FREQUENCY, UNIT, ISIC_ECONOMIC_ACTIVITY, INDSTAT_VERSION, VARIABLE_NAME) VALUES ('Value added', 'value_added_2320_refined_petroleum_products_indstat_2024_isic_revision_3_in_usd', 'Annual', 'USD', 'Refined petroleum products', 'INDSTAT 2024, ISIC Revision 3', 'Value added: 2320 Refined petroleum products (INDSTAT 2024, ISIC Revision 3) (in USD)'), ('Female employees', 'female_employees_2021_veneer_sheets_plywood_particle_board_etc_indstat_2024_isic_revision_3', 'Annual', 'Count', 'Veneer sheets, plywood, particle board, etc.', 'INDSTAT 2024, ISIC Revision 3', 'Female employees: 2021 Veneer sheets, plywood, particle board, etc. (INDSTAT 2024, ISIC Revision 3)'), ('Employees', 'employees_3110_electric_motors_generators_and_transformers_indstat_2024_isic_revision_3', 'Annual', 'Count', 'Electric motors, generators and transformers', 'INDSTAT 2024, ISIC Revision 3', 'Employees: 3110 Electric motors, generators and transformers (INDSTAT 2024, ISIC Revision 3)'), ('Establishments', 'establishments_132_non-ferrous_metal_oresexcluraniumthorium_indstat_2024_isic_revision_3', 'Annual', 'Count', 'Non-ferrous metal ores,excl.uranium,thorium', 'INDSTAT 2024, ISIC Revision 3', 'Establishments: 132 Non-ferrous metal ores,excl.uranium,thorium (INDSTAT 2024, ISIC Revision 3)'), ('Value added', 'value_added_37_recycling_indstat_2024_isic_revision_3_in_usd', 'Annual', 'USD', 'Recycling', 'INDSTAT 2024, ISIC Revision 3', 'Value added: 37 Recycling (INDSTAT 2024, ISIC Revision 3) (in USD)');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.GEOGRAPHY_INDEX (
    LEVEL TEXT,
    ISO_ALPHA2 TEXT,
    GEO_ID TEXT,
    ISO_3166_2_CODE TEXT,
    ISO_NUMERIC_CODE TEXT,
    GEO_NAME TEXT,
    ISO_NAME TEXT,
    ISO_ALPHA3 TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."GEOGRAPHY_INDEX" (LEVEL, ISO_ALPHA2, GEO_ID, ISO_3166_2_CODE, ISO_NUMERIC_CODE, GEO_NAME, ISO_NAME, ISO_ALPHA3) VALUES ('CensusBlockGroup', NULL, 'censusBlockGroup/390930801011', NULL, NULL, 'Block Group 1; Census Tract 801.01; Lorain County; Ohio', NULL, NULL), ('CensusBlockGroup', NULL, 'censusBlockGroup/120379703022', NULL, NULL, 'Block Group 2; Census Tract 9703.02; Franklin County; Florida', NULL, NULL), ('CensusBlockGroup', NULL, 'censusBlockGroup/484959503002', NULL, NULL, 'Block Group 2; Census Tract 9503; Winkler County; Texas', NULL, NULL), ('CensusBlockGroup', NULL, 'censusBlockGroup/380350111002', NULL, NULL, 'Block Group 2; Census Tract 111; Grand Forks County; North Dakota', NULL, NULL), ('CensusBlockGroup', NULL, 'censusBlockGroup/410050231002', NULL, NULL, 'Block Group 2; Census Tract 231; Clackamas County; Oregon', NULL, NULL);
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.AMERICAN_COMMUNITY_SURVEY_TIMESERIES (
    VARIABLE_NAME TEXT,
    VARIABLE TEXT,
    VALUE VARIANT,
    DATE DATE,
    GEO_ID TEXT,
    UNIT TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."AMERICAN_COMMUNITY_SURVEY_TIMESERIES" (VARIABLE_NAME, VARIABLE, VALUE, DATE, GEO_ID, UNIT) VALUES ('Mortgage Status By Selected Monthly Owner Costs As A Percentage Of Household Income In The Past 12 Months: Population | Housing units with a mortgage | 30.0 to 34.9 percent, 5yr Estimate', 'B25091_008E_5YR', 21.0, '2016-12-31', 'zip/54137', 'Count'), ('Mortgage Status By Selected Monthly Owner Costs As A Percentage Of Household Income In The Past 12 Months: Population | Housing units with a mortgage | 30.0 to 34.9 percent, 5yr Estimate', 'B25091_008E_5YR', 0.0, '2016-12-31', 'zip/57540', 'Count'), ('Mortgage Status By Selected Monthly Owner Costs As A Percentage Of Household Income In The Past 12 Months: Population | Housing units with a mortgage | 30.0 to 34.9 percent, 5yr Estimate', 'B25091_008E_5YR', 17.0, '2016-12-31', 'zip/60955', 'Count'), ('Occupants Per Room ( Householder): Population | 1.00 or less occupants per room | White Alone, Not Hispanic or Latino, 5yr Estimate', 'B25014H_002E_5YR', 10702.0, '2021-12-31', 'zip/40503', 'Count'), ('Bedrooms By Gross Rent: Population | 3 or more bedrooms | No cash rent, 5yr Margin of Error', 'B25068_037M_5YR', 45.0, '2013-12-31', 'zip/48050', 'Count');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.HOUSING_URBAN_DEVELOPMENT_ATTRIBUTES (
    FREQUENCY TEXT,
    UNIT TEXT,
    VARIABLE_NAME TEXT,
    MEASURE TEXT,
    VARIABLE TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."HOUSING_URBAN_DEVELOPMENT_ATTRIBUTES" (FREQUENCY, UNIT, VARIABLE_NAME, MEASURE, VARIABLE) VALUES ('Annual', 'Count', 'Sheltered Safe Haven (SH) Homeless Individuals - Hispanic/Latin(o)(a)(x)', 'Homelessness', 'sheltered_safe_haven_sh_homeless_individuals_hispaniclatinoax'), ('Annual', 'Count', 'Sheltered Safe Haven (SH) Homeless Individuals - Male', 'Homelessness', 'sheltered_safe_haven_sh_homeless_individuals_male'), ('Annual', 'Count', 'Sheltered Total Homeless', 'Sheltered Homelessness', 'sheltered_total_homeless'), ('Annual', 'Count', 'Sheltered Safe Haven (SH) Homeless - Age 35 to 44', 'Homelessness', 'sheltered_safe_haven_sh_homeless_age_35_to_44'), ('Annual', 'Count', 'Sheltered Safe Haven (SH) Homeless - American Indian, Alaska Native, or Indigenous', 'Homelessness', 'sheltered_safe_haven_sh_homeless_american_indian_alaska_native_or_indigenous');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.WORLD_BANK_TIMESERIES (
    VARIABLE TEXT,
    UNIT TEXT,
    VALUE FLOAT,
    DATE DATE,
    VARIABLE_NAME TEXT,
    GEO_ID TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."WORLD_BANK_TIMESERIES" (VARIABLE, UNIT, VALUE, DATE, VARIABLE_NAME, GEO_ID) VALUES ('WDI_SE.TER.ENRR.FE', 'Percent', 0.49392711639404296, '2010-12-31', 'School enrollment, tertiary, female (percent gross)', 'country/BMU'), ('WDI_SE.ENR.TERT.FM.ZS', 'Index', 1.42332756519318, '2019-12-31', 'School enrollment, tertiary (gross), gender parity index (GPI)', 'country/WSM'), ('WDI_NY.GNP.ATLS.CD', 'USD', 321132554994.836, '2006-12-31', 'Gross National Income, Atlas method (current USD)', 'country/POL'), ('WDI_NE.EXP.GNFS.KN', 'Local currency', 16595738300.0, '2006-12-31', 'Exports of goods and services (constant local currency)', 'country/SWZ'), ('QEDS_DT.DOD.PUMU.CD.ST.US', 'USD', 0.0, '2009-03-31', 'Public Sector External Debt Position, Multilateral creditors, Short-term, All instruments, USD', 'country/CMR');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.UNITED_KINGDOM_TIMESERIES (
    VARIABLE TEXT,
    VARIABLE_NAME TEXT,
    UNIT TEXT,
    GEO_ID TEXT,
    DATE DATE,
    VALUE FLOAT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."UNITED_KINGDOM_TIMESERIES" (VARIABLE, VARIABLE_NAME, UNIT, GEO_ID, DATE, VALUE) VALUES ('weekly-deaths-local-authority_registrations_hospice_covid-19', 'Death Registrations from COVID 19: Hospice', 'Count', 'uk/E06000055', '2022-12-11', 0.0), ('weekly-deaths-local-authority_occurrences_hospital_all-causes', 'Death Occurrences from All causes: Hospital', 'Count', 'uk/E06000037', '2023-10-22', 8.0), ('weekly-deaths-local-authority_registrations_other-communal-establishment_covid-19', 'Death Registrations from COVID 19: Other communal establishment', 'Count', 'uk/E08000034', '2023-09-03', 0.0), ('weekly-deaths-local-authority_registrations_other-communal-establishment_covid-19', 'Death Registrations from COVID 19: Other communal establishment', 'Count', 'uk/E06000043', '2023-07-09', 0.0), ('weekly-deaths-local-authority_occurrences_hospice_all-causes', 'Death Occurrences from All causes: Hospice', 'Count', 'uk/E09000028', '2023-06-25', 1.0);
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.DATACOMMONS_TIMESERIES (
    VARIABLE TEXT,
    UNIT TEXT,
    VARIABLE_NAME TEXT,
    DATE DATE,
    GEO_ID TEXT,
    VALUE NUMBER
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."DATACOMMONS_TIMESERIES" (VARIABLE, UNIT, VARIABLE_NAME, DATE, GEO_ID, VALUE) VALUES ('Mean_Visibility', 'Kilometer', 'Mean Visibility', '2023-02-01', 'geoId/5003250', '13.38340000000'), ('Mean_Snowfall', 'Millimeter', 'Mean Snowfall', '1957-05-01', 'geoId/3048250', '0.60420000000'), ('Mean_Snowfall', 'Millimeter', 'Mean Snowfall', '1924-12-01', 'zip/97132', '3.80307000000'), ('Mean_Snowfall', 'Millimeter', 'Mean Snowfall', '1934-03-01', 'geoId/2601960', '12.39500000000'), ('Count_Person_WithMedicaidOrMeansTestedPublicCoverage', 'Count', 'Population With Medicaid or Means-Tested Public Coverage', '2018-01-01', 'geoId/42039111600', '1768.00000000000');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.FBI_CRIME_TIMESERIES (
    DATE DATE,
    VALUE NUMBER,
    GEO_ID TEXT,
    UNIT TEXT,
    VARIABLE TEXT,
    VARIABLE_NAME TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."FBI_CRIME_TIMESERIES" (DATE, VALUE, GEO_ID, UNIT, VARIABLE, VARIABLE_NAME) VALUES ('1979-12-31', 14472, 'geoId/08', 'Count', 'annual_count_of_incidents_violent_crime', 'Annual Count of Incidents, violent crime'), ('1979-12-31', 73881, 'geoId/12', 'Count', 'annual_count_of_incidents_violent_crime', 'Annual Count of Incidents, violent crime'), ('1979-12-31', 30650, 'geoId/25', 'Count', 'annual_count_of_incidents_violent_crime', 'Annual Count of Incidents, violent crime'), ('1979-12-31', 3485, 'geoId/44', 'Count', 'annual_count_of_incidents_violent_crime', 'Annual Count of Incidents, violent crime'), ('1980-12-31', 35735, 'geoId/24', 'Count', 'annual_count_of_incidents_violent_crime', 'Annual Count of Incidents, violent crime');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.CALENDAR_INDEX (
    CALENDAR_NAME TEXT,
    CALENDAR_ID TEXT,
    ORDINAL_POSITION_IN_ANNUAL_PERIOD NUMBER,
    PERIOD_END_DATE DATE,
    PERIOD_START_DATE DATE,
    ANNUAL_PERIOD NUMBER
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."CALENDAR_INDEX" (CALENDAR_NAME, CALENDAR_ID, ORDINAL_POSITION_IN_ANNUAL_PERIOD, PERIOD_END_DATE, PERIOD_START_DATE, ANNUAL_PERIOD) VALUES ('Day', 'day', 34, '2017-02-03', '2017-02-03', 2017), ('Week - Monday Start', 'week_monday_start', 24, '2023-06-18', '2023-06-12', 2023), ('Day', 'day', 177, '2023-06-26', '2023-06-26', 2023), ('Day', 'day', 313, '2019-11-09', '2019-11-09', 2019), ('Day', 'day', 313, '2018-11-09', '2018-11-09', 2018);
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.WORLD_HEALTH_ORGANIZATION_ATTRIBUTES (
    SERIES_LEVEL_3_TYPE TEXT,
    VARIABLE_NAME TEXT,
    SERIES_LEVEL_2_TYPE TEXT,
    SERIES_LEVEL_1 TEXT,
    FREQUENCY TEXT,
    MEASUREMENT_TYPE TEXT,
    SERIES_LEVEL_2 TEXT,
    SERIES_LEVEL_1_TYPE TEXT,
    VARIABLE TEXT,
    SERIES_LEVEL_3 TEXT,
    MEASURE TEXT,
    UNIT TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."WORLD_HEALTH_ORGANIZATION_ATTRIBUTES" (SERIES_LEVEL_3_TYPE, VARIABLE_NAME, SERIES_LEVEL_2_TYPE, SERIES_LEVEL_1, FREQUENCY, MEASUREMENT_TYPE, SERIES_LEVEL_2, SERIES_LEVEL_1_TYPE, VARIABLE, SERIES_LEVEL_3, MEASURE, UNIT) VALUES ('Cause', 'Ambient air pollution attributable deaths | Sex: Both sexes | Age Group: 0-4 years | Cause: Lower respiratory infections | Margin of Error: Upper Bound', 'Age Group', 'Both sexes', 'Annual', 'Margin of Error: Upper Bound', '0-4 years', 'Sex', 'AIR_41_SEX_BTSX_AGEGROUP_AGE0-4_ENVCAUSE_ENVCAUSE039_HIGH', 'Lower respiratory infections', 'Mortality', 'Count'), ('Cause', 'Ambient air pollution attributable deaths | Sex: Both sexes | Age Group: 0-4 years | Cause: Lower respiratory infections | Margin of Error: Lower Bound', 'Age Group', 'Both sexes', 'Annual', 'Margin of Error: Lower Bound', '0-4 years', 'Sex', 'AIR_41_SEX_BTSX_AGEGROUP_AGE0-4_ENVCAUSE_ENVCAUSE039_LOW', 'Lower respiratory infections', 'Mortality', 'Count'), ('Cause', 'Ambient air pollution attributable deaths | Sex: Both sexes | Age Group: 25-29 years | Cause: Trachea, bronchus, lung cancers | Estimate', 'Age Group', 'Both sexes', 'Annual', 'Estimate', '25-29 years', 'Sex', 'AIR_41_SEX_BTSX_AGEGROUP_AGE25-29_ENVCAUSE_ENVCAUSE068', 'Trachea, bronchus, lung cancers', 'Mortality', 'Count'), ('Cause', 'Ambient air pollution attributable deaths | Sex: Both sexes | Age Group: 25-29 years | Cause: Stroke | Estimate', 'Age Group', 'Both sexes', 'Annual', 'Estimate', '25-29 years', 'Sex', 'AIR_41_SEX_BTSX_AGEGROUP_AGE25-29_ENVCAUSE_ENVCAUSE114', 'Stroke', 'Mortality', 'Count'), ('Cause', 'Ambient air pollution attributable deaths | Sex: Both sexes | Age Group: 25-29 years | Cause: Stroke | Margin of Error: Lower Bound', 'Age Group', 'Both sexes', 'Annual', 'Margin of Error: Lower Bound', '25-29 years', 'Sex', 'AIR_41_SEX_BTSX_AGEGROUP_AGE25-29_ENVCAUSE_ENVCAUSE114_LOW', 'Stroke', 'Mortality', 'Count');
-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.US_DEPARTMENT_OF_TRANSPORTATION_TIMESERIES (
    FLIGHT_TYPE_ID TEXT,
    AIRCRAFT_ID TEXT,
    DESTINATION_AIRPORT_ID TEXT,
    UNIT TEXT,
    VALUE FLOAT,
    DATE DATE,
    SERVICE_CLASS TEXT,
    VARIABLE_NAME TEXT,
    ORIGIN_AIRPORT_ID TEXT,
    VARIABLE TEXT,
    AIRCRAFT_CARRIER_ID TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."US_DEPARTMENT_OF_TRANSPORTATION_TIMESERIES" (FLIGHT_TYPE_ID, AIRCRAFT_ID, DESTINATION_AIRPORT_ID, UNIT, VALUE, DATE, SERVICE_CLASS, VARIABLE_NAME, ORIGIN_AIRPORT_ID, VARIABLE, AIRCRAFT_CARRIER_ID) VALUES ('28ad3b116a705f65fd2a9df6bec3f49f', '3501', '10360BET', 'Minutes', 56.0, '2010-08-31', 'Non-Scheduled Civilian Passenger Service', 'Ramp to Ramp Time', '90530OOK', 'RAMP_IN_MINUTES', '06964_12'), ('cf4b7309ce4884368d51a7e51942e1b9', '67761', '30977ORD', 'Minutes', 129.0, '2022-08-31', 'Scheduled Passenger/Cargo Service', 'Ramp to Ramp Time', '33342MKE', 'RAMP_IN_MINUTES', '06820_32'), ('f367e322ca9c2659c07cc794f71f1d91', '3161', '31057CLT', 'Pounds', 17600.0, '2018-12-31', 'Scheduled Passenger/Cargo Service', 'Available Payload', '30781BTR', 'AVAILABLE_CAPACITY_PAYLOAD_POUNDS', '07028_22'), ('c9dd4f9fc360815254514841363591c7', '61661', '30792BUF', 'Count', 17.0, '2001-02-28', 'Scheduled Passenger/Cargo Service', 'Departures Performed', '31703EWR', 'DEPARTURES_PERFORMED', '01220_31'), ('43c78ee4a763fae537e32de92c688134', '41641', '32214HSL', 'Pounds', 1121.0, '2003-06-30', 'Scheduled Passenger/Cargo Service', 'Non-Stop Segment Mail Transported', '32122HGZ', 'MAIL_TRANSPORTED', '06860_12');
-- DBMS: snowflake
CREATE TABLE CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE.public.Fact_StateBenchmark_ACS2021 (
    TotalStatePopulation NUMBER,
    MetricID TEXT,
    StateBenchmarkValue FLOAT,
    TotalUSPopulation NUMBER,
    StateFIPS TEXT,
    StateAbbrev TEXT
);

INSERT INTO "CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE"."PUBLIC"."Fact_StateBenchmark_ACS2021" (TotalStatePopulation, MetricID, StateBenchmarkValue, TotalUSPopulation, StateFIPS, StateAbbrev) VALUES (20114745, 'B25075_011E', 61829.0, 333036755, '36', 'NY'), (20114745, 'B25063_023E', 366764.0, 333036755, '36', 'NY'), (20114745, 'B19051_001E', 7530150.0, 333036755, '36', 'NY'), (20114745, 'B08301_009E', 11819.0, 333036755, '36', 'NY'), (20114745, 'B11012_016E', 214963.0, 333036755, '36', 'NY');
-- DBMS: snowflake
CREATE TABLE CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE.public.Xref_TractToZip_Residential (
    FromStateCountyTractID TEXT,
    ToZipCode TEXT,
    ResidentialMappingRatioTZ NUMBER
);

INSERT INTO "CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE"."PUBLIC"."Xref_TractToZip_Residential" (FromStateCountyTractID, ToZipCode, ResidentialMappingRatioTZ) VALUES ('36047055400', '11229', '0.949859154929578'), ('36061007100', '10119', '0E-15'), ('36061007100', '10011', '0.516922382671480'), ('36061007100', '10001', '0E-15'), ('36047087600', '11203', '1.000000000000000');
-- DBMS: snowflake
CREATE TABLE CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE.public.Fact_CensusValues_ACS2021_ByZip (
    CensusValueByZip NUMBER,
    MetricID TEXT,
    ZipCode TEXT
);

INSERT INTO "CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE"."PUBLIC"."Fact_CensusValues_ACS2021_ByZip" (CensusValueByZip, MetricID, ZipCode) VALUES ('53.59', 'B25075_020E', '14525'), ('51.04', 'B25063_019E', '12220'), ('0.59', 'B02001_008E', '12485'), ('47.06', 'B08303_011E', '14739'), ('123.66', 'B11012_004E', '12857');
-- DBMS: snowflake
CREATE TABLE CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE.public.Xref_ZipToTract_Residential (
    FromZipCode TEXT,
    ToStateCountyTractID TEXT,
    ResidentialMappingRatioZT NUMBER
);

INSERT INTO "CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE"."PUBLIC"."Xref_ZipToTract_Residential" (FromZipCode, ToStateCountyTractID, ResidentialMappingRatioZT) VALUES ('13666', '36089492501', '1.000000000000000'), ('12160', '36095740400', '0.500000000000000'), ('12160', '36057072800', '0.032863849765258'), ('12854', '36115084001', '1.000000000000000'), ('12814', '36113078000', '0.995645863570392');
-- DBMS: snowflake
CREATE TABLE CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE.public.Fact_CensusValues_ACS2021 (
    CensusValue FLOAT,
    MetricID TEXT,
    BlockGroupID TEXT
);

INSERT INTO "CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE"."PUBLIC"."Fact_CensusValues_ACS2021" (CensusValue, MetricID, BlockGroupID) VALUES (9.0, 'B11012_009E', '361031471003'), (0.0, 'B11012_010E', '361031471003'), (0.0, 'B11012_015E', '361031471003'), (23.0, 'B11012_016E', '361031471003'), (0.0, 'B11012_017E', '361031471003');
-- DBMS: snowflake
CREATE TABLE CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE.public.Dim_CensusMetrics (
    Type TEXT,
    Descriptor2 TEXT,
    MetricCategory TEXT,
    MetricTableDesc TEXT,
    MetricTableID TEXT,
    MetricID TEXT,
    Descriptor1 TEXT,
    UnitMeasureType TEXT,
    MetricGroup TEXT,
    Descriptor3 TEXT
);

INSERT INTO "CENSUS_GALAXY__ZIP_CODE_TO_BLOCK_GROUP_SAMPLE"."PUBLIC"."Dim_CensusMetrics" (Type, Descriptor2, MetricCategory, MetricTableDesc, MetricTableID, MetricID, Descriptor1, UnitMeasureType, MetricGroup, Descriptor3) VALUES ('Estimate', '', 'Demographics', 'Median age of the population categorized by sex', 'B01002', 'B01002_002E', 'Male', 'Aggregate', 'Essential', ''), ('Estimate', '', 'Income', 'Earnings of households in the past 12 months', 'B19051', 'B19051_001E', '', 'People', 'Essential', ''), ('Estimate', '', 'Income', 'Earnings of households in the past 12 months', 'B19051', 'B19051_003E', 'No earnings', 'People', 'Essential', ''), ('Estimate', '', 'Housing', 'Different types of households based on size and type', 'B11012', 'B11012_002E', 'Marriedcouple household', 'People', 'Essential', ''), ('Estimate', 'With no children of the householder under 18 years', 'Housing', 'Different types of households based on size and type', 'B11012', 'B11012_004E', 'Marriedcouple household', 'People', 'Essential', '');
-- DBMS: snowflake
create or replace TABLE STATE_FIPS (
	"state" VARCHAR(16777216),
	"postal_code" VARCHAR(16777216),
	"fips" NUMBER(38,0)
);

INSERT INTO "CENSUS_BUREAU_ACS_2"."CYCLISTIC"."STATE_FIPS" (state, postal_code, fips) VALUES ('Alabama', 'AL', 1), ('Arkansas', 'AR', 5), ('Hawaii', 'HI', 15), ('Idaho', 'ID', 16), ('Illinois', 'IL', 17);
-- DBMS: snowflake
create or replace TABLE ZIP_CODES (
	"zip" NUMBER(38,0),
	"borough" VARCHAR(16777216),
	"neighborhood" VARCHAR(16777216)
);

INSERT INTO "CENSUS_BUREAU_ACS_2"."CYCLISTIC"."ZIP_CODES" (zip, borough, neighborhood) VALUES (10453, 'Bronx', 'Central Bronx'), (10451, 'Bronx', 'High Bridge and Morrisania'), (10452, 'Bronx', 'High Bridge and Morrisania'), (10456, 'Bronx', 'High Bridge and Morrisania'), (10455, 'Bronx', 'Hunts Point and Mott Haven');
-- DBMS: snowflake
create or replace TABLE POPULATION_GRID_1KM (
	"country_name" VARCHAR(16777216),
	"geo_id" VARCHAR(16777216),
	"population" FLOAT,
	"longitude_centroid" FLOAT,
	"latitude_centroid" FLOAT,
	"alpha_3_code" VARCHAR(16777216),
	"geog" BINARY(8388608),
	"last_updated" DATE
);

INSERT INTO "GEO_OPENSTREETMAP_WORLDPOP"."WORLDPOP"."POPULATION_GRID_1KM" (alpha_3_code, last_updated, longitude_centroid, latitude_centroid, geo_id, population, country_name, geog) VALUES ('GIB', '2018-01-01', -5.347083296988231, 36.120416721983034, 'wpeykjqrd2ev', 1650.8153076171875, 'Gibraltar', 'bytearray(b''\x01\x03\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\xd6I9Y\xf2\x0fB@V\x88\t\x12\xaeg\x15\xc0\xd7I9Y\xf2\x0fB@W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@'')'), ('GIB', '2005-01-01', -5.347083296988231, 36.120416721983034, 'wpeykjqrd2ev', 1161.977783203125, 'Gibraltar', 'bytearray(b''\x01\x03\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\xd6I9Y\xf2\x0fB@V\x88\t\x12\xaeg\x15\xc0\xd7I9Y\xf2\x0fB@W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@'')'), ('GIB', '2006-01-01', -5.347083296988231, 36.120416721983034, 'wpeykjqrd2ev', 956.6270751953125, 'Gibraltar', 'bytearray(b''\x01\x03\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\xd6I9Y\xf2\x0fB@V\x88\t\x12\xaeg\x15\xc0\xd7I9Y\xf2\x0fB@W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@'')'), ('GIB', '2002-01-01', -5.347083296988231, 36.120416721983034, 'wpeykjqrd2ev', 1322.216796875, 'Gibraltar', 'bytearray(b''\x01\x03\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\xd6I9Y\xf2\x0fB@V\x88\t\x12\xaeg\x15\xc0\xd7I9Y\xf2\x0fB@W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@'')'), ('GIB', '2017-01-01', -5.347083296988231, 36.120416721983034, 'wpeykjqrd2ev', 1687.7110595703125, 'Gibraltar', 'bytearray(b''\x01\x03\x00\x00\x00\x01\x00\x00\x00\x05\x00\x00\x00W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\x19K(H\xe1\x0eB@h\x92\x81\x89%_\x15\xc0\xd6I9Y\xf2\x0fB@V\x88\t\x12\xaeg\x15\xc0\xd7I9Y\xf2\x0fB@W\x88\t\x12\xaeg\x15\xc0\x19K(H\xe1\x0eB@'')');
-- DBMS: snowflake
create or replace TABLE RECORDAXISCONDITIONS (
	"Icd10Code" VARCHAR(16777216),
	"DeathRecordId" NUMBER(38,0),
	"Id" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."RECORDAXISCONDITIONS" (DeathRecordId, Icd10Code, Id) VALUES (1738256, 'A38', 4987350), (557544, 'A86', 1673817), (427004, 'A86', 1314453), (153136, 'B24', 425994), (287156, 'B24', 872603);
-- DBMS: snowflake
create or replace TABLE HISPANICORIGINRACERECODE (
	"Code" NUMBER(38,0),
	"Description" VARCHAR(16777216)
);

INSERT INTO "DEATH"."DEATH"."HISPANICORIGINRACERECODE" (Code, Description) VALUES (1, 'Mexican'), (2, 'Puerto Rican'), (3, 'Cuban'), (4, 'Central or South American'), (5, 'Other or unknown Hispanic');
-- DBMS: snowflake
create or replace TABLE PLACEOFINJURY (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."PLACEOFINJURY" (Description, Code) VALUES ('Home', 0), ('Residential institution', 1), ('School, other institution and public administrative area', 2), ('Street and highway', 4), ('Farm', 7);
-- DBMS: snowflake
create or replace TABLE TEMP_DEATHS (
	"Age" NUMBER(38,0),
	"Icd10Code" VARCHAR(16777216),
	"Race" NUMBER(38,0),
	"death_count" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."TEMP_DEATHS" (Age, death_count, Icd10Code, Race) VALUES ;
-- DBMS: snowflake
create or replace TABLE AGERECODE52 (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."AGERECODE52" (Description, Code) VALUES ('3 days', 5), ('4 days', 6), ('5 days', 7), ('6 days', 8), ('7 - 13 days (includes not stated weeks)', 9);
-- DBMS: snowflake
create or replace TABLE HISPANICORIGIN (
	"Code" NUMBER(38,0),
	"Description" VARCHAR(16777216)
);

INSERT INTO "DEATH"."DEATH"."HISPANICORIGIN" (Description, Code) VALUES ('Non-Hispanic', 102), ('Non-Hispanic', 103), ('Non-Hispanic', 104), ('Non-Hispanic', 105), ('Non-Hispanic', 106);
-- DBMS: snowflake
create or replace TABLE MARITALSTATUS (
	"Description" VARCHAR(16777216),
	"Code" VARCHAR(16777216)
);

INSERT INTO "DEATH"."DEATH"."MARITALSTATUS" (Description, Code) VALUES ('Divorced', 'D'), ('Married', 'M'), ('Married', 'M'), ('Never married, single', 'S'), ('Never married, single', 'S');
-- DBMS: snowflake
create or replace TABLE ICD10CODE (
	"Description" VARCHAR(16777216),
	"Code" VARCHAR(16777216)
);

INSERT INTO "DEATH"."DEATH"."ICD10CODE" (Description, Code) VALUES ('Yaws', 'A66'), ('Cough', 'R05'), ('Mumps', 'B26'), ('Ainhum', 'L946'), ('Myopia', 'H521');
-- DBMS: snowflake
create or replace TABLE AGERECODE12 (
	"Code" NUMBER(38,0),
	"Description" VARCHAR(16777216)
);

INSERT INTO "DEATH"."DEATH"."AGERECODE12" (Code, Description) VALUES (4, '15 - 24 years'), (6, '35 - 44 years'), (8, '55 - 64 years'), (10, '75 - 84 years'), (11, '85 years and over');
-- DBMS: snowflake
create or replace TABLE PLACEOFDEATHANDDECEDENTSSTATUS (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."PLACEOFDEATHANDDECEDENTSSTATUS" (Description, Code) VALUES ('Hospital, clinic or Medical Center - Inpatient', 1), ('Hospital, Clinic or Medical Center - Outpatient or admitted to Emergency Room', 2), ('Decedent''s home', 4), ('Nursing home/long term care', 6), ('Other', 7);
-- DBMS: snowflake
create or replace TABLE AGERECODE27 (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."AGERECODE27" (Description, Code) VALUES ('1 month - 11 months (includes not stated months)', 2), ('1 year', 3), ('3 years', 5), ('5 - 9 years', 7), ('10 - 14 years', 8);
-- DBMS: snowflake
create or replace TABLE ENTITYAXISCONDITIONS (
	"Id" NUMBER(38,0),
	"DeathRecordId" NUMBER(38,0),
	"Part" NUMBER(38,0),
	"Line" FLOAT,
	"Sequence" NUMBER(38,0),
	"Icd10Code" VARCHAR(16777216)
);

INSERT INTO "DEATH"."DEATH"."ENTITYAXISCONDITIONS" (Line, DeathRecordId, Sequence, Icd10Code, Id, Part) VALUES (2.0, 717162, 1, 'R688', 2201459, 1), (2.0, 717283, 1, 'R688', 2201817, 1), (2.0, 717363, 1, 'R688', 2202048, 1), (2.0, 717492, 1, 'R688', 2202416, 1), (2.0, 717805, 1, 'R688', 2203259, 1);
-- DBMS: snowflake
create or replace TABLE DEATHRECORDS (
	"HispanicOrigin" NUMBER(38,0),
	"RaceRecode3" NUMBER(38,0),
	"RaceImputationFlag" NUMBER(38,0),
	"HispanicOriginRaceRecode" NUMBER(38,0),
	"NumberOfRecordAxisConditions" NUMBER(38,0),
	"NumberOfEntityAxisConditions" NUMBER(38,0),
	"CauseRecode39" NUMBER(38,0),
	"InfantCauseRecode130" NUMBER(38,0),
	"CauseRecode113" NUMBER(38,0),
	"CauseRecode358" NUMBER(38,0),
	"PlaceOfInjury" NUMBER(38,0),
	"Autopsy" VARCHAR(16777216),
	"RaceRecode5" NUMBER(38,0),
	"InjuryAtWork" VARCHAR(16777216),
	"Id" NUMBER(38,0),
	"AgeRecode27" NUMBER(38,0),
	"MannerOfDeath" NUMBER(38,0),
	"Education2003Revision" NUMBER(38,0),
	"MethodOfDisposition" VARCHAR(16777216),
	"CurrentDataYear" NUMBER(38,0),
	"DayOfWeekOfDeath" NUMBER(38,0),
	"ActivityCode" NUMBER(38,0),
	"AgeRecode52" NUMBER(38,0),
	"MaritalStatus" VARCHAR(16777216),
	"AgeRecode12" NUMBER(38,0),
	"PlaceOfDeathAndDecedentsStatus" NUMBER(38,0),
	"InfantAgeRecode22" NUMBER(38,0),
	"ResidentStatus" NUMBER(38,0),
	"AgeType" NUMBER(38,0),
	"Race" NUMBER(38,0),
	"MonthOfDeath" NUMBER(38,0),
	"Age" NUMBER(38,0),
	"AgeSubstitutionFlag" NUMBER(38,0),
	"BridgedRaceFlag" NUMBER(38,0),
	"Icd10Code" VARCHAR(16777216),
	"Sex" VARCHAR(16777216),
	"Education1989Revision" NUMBER(38,0),
	"EducationReportingFlag" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."DEATHRECORDS" (ResidentStatus, AgeRecode27, PlaceOfDeathAndDecedentsStatus, CurrentDataYear, Education2003Revision, Icd10Code, ActivityCode, Education1989Revision, EducationReportingFlag, PlaceOfInjury, NumberOfEntityAxisConditions, CauseRecode358, InjuryAtWork, CauseRecode39, AgeRecode12, AgeSubstitutionFlag, HispanicOriginRaceRecode, Id, DayOfWeekOfDeath, MonthOfDeath, RaceRecode5, MaritalStatus, AgeType, Autopsy, RaceRecode3, CauseRecode113, HispanicOrigin, Age, InfantAgeRecode22, MannerOfDeath, InfantCauseRecode130, Race, NumberOfRecordAxisConditions, AgeRecode52, Sex, RaceImputationFlag, MethodOfDisposition, BridgedRaceFlag) VALUES (1, 3, 1, 2014, 1, 'J22', 99, 0, 1, 99, 1, 260, 'U', 37, 2, 0, 6, 1281964, 6, 5, 1, 'S', 1, 'Y', 1, 81, 100, 1, 0, 7, 0, 1, 1, 23, 'F', 0, 'B', 0), (1, 2, 1, 2014, 1, 'P77', 99, 0, 1, 99, 2, 364, 'U', 33, 1, 0, 7, 1771786, 1, 5, 2, 'S', 2, 'Y', 3, 108, 100, 1, 12, 7, 115, 2, 1, 12, 'F', 0, 'B', 0), (1, 2, 1, 2014, 9, 'P77', 99, 0, 1, 99, 3, 364, 'U', 33, 1, 0, 6, 2220236, 1, 3, 1, 'S', 2, 'N', 1, 108, 100, 1, 12, 7, 115, 1, 2, 12, 'M', 0, 'B', 0), (3, 2, 1, 2014, 9, 'P77', 99, 0, 1, 99, 3, 364, 'U', 33, 1, 0, 7, 449245, 4, 4, 2, 'S', 2, 'Y', 3, 108, 100, 1, 12, 7, 115, 2, 2, 12, 'M', 0, 'C', 0), (1, 2, 2, 2014, 1, 'R95', 99, 0, 1, 99, 1, 378, 'U', 35, 1, 0, 7, 1035396, 3, 5, 2, 'S', 2, 'Y', 3, 110, 100, 1, 12, 7, 135, 2, 1, 12, 'M', 0, 'B', 0);
-- DBMS: snowflake
create or replace TABLE RACE (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."RACE" (Code, Description) VALUES (0, 'Other races'), (6, 'Hawaiian (includes Part-Hawaiian)'), (7, 'Filipino'), (18, 'Asian Indian'), (28, 'Korean');
-- DBMS: snowflake
create or replace TABLE EDUCATION2003REVISION (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."EDUCATION2003REVISION" (Description, Code) VALUES ('8th grade or less', 1), ('9 - 12th grade, no diploma', 2), ('some college credit, but no degree', 4), ('Master''s degree', 7), ('Doctorate or professional degree', 8);
-- DBMS: snowflake
create or replace TABLE INFANTAGERECODE22 (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."INFANTAGERECODE22" (Code, Description) VALUES (4, '2 days'), (5, '3 days'), (7, '5 days'), (8, '6 days'), (9, '7-13 days (includes not stated weeks)');
-- DBMS: snowflake
create or replace TABLE MANNEROFDEATH (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."MANNEROFDEATH" (Description, Code) VALUES ('Suicide', 2), ('Homicide', 3), ('Pending investigation', 4), ('Could not determine', 5), ('Self-Inflicted', 6);
-- DBMS: snowflake
create or replace TABLE EDUCATION1989REVISION (
	"Description" VARCHAR(16777216),
	"Code" NUMBER(38,0)
);

INSERT INTO "DEATH"."DEATH"."EDUCATION1989REVISION" (Code, Description) VALUES (2, 'Years of elementary school'), (4, 'Years of elementary school'), (6, 'Years of elementary school'), (7, 'Years of elementary school'), (8, 'Years of elementary school');
-- DBMS: snowflake
create or replace TABLE DNA_METHYLATION_CHR8_HG38_GDC_2017_01 (
	"case_barcode" VARCHAR(16777216),
	"sample_barcode" VARCHAR(16777216),
	"aliquot_barcode" VARCHAR(16777216),
	"probe_id" VARCHAR(16777216),
	"beta_value" FLOAT,
	"platform" VARCHAR(16777216),
	"file_gdc_id" VARCHAR(16777216),
	"case_gdc_id" VARCHAR(16777216),
	"sample_gdc_id" VARCHAR(16777216),
	"aliquot_gdc_id" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."DNA_METHYLATION_CHR8_HG38_GDC_2017_01" (sample_gdc_id, aliquot_gdc_id, probe_id, aliquot_barcode, case_barcode, case_gdc_id, platform, sample_barcode, file_gdc_id, beta_value) VALUES ('b02fd704-03a6-44c4-b224-f5f457e733f3', 'aa761ca4-e8f0-4a43-8262-bd84eedb459a', 'cg03521600', 'TCGA-12-1601-01A-01D-0595-05', 'TCGA-12-1601', 'cc1459be-de8f-482e-9efe-65937db9dc45', NULL, 'TCGA-12-1601-01A', '5cd6f2f6-7278-4757-be8e-a8ae3a7a81d3', 0.0118651512488683), ('58af038c-bd40-4123-a6d3-11061f0d38e1', '6e65d823-0d94-4d26-b60a-2f168cbe2ba8', 'cg11754206', 'TCGA-32-2498-01A-01D-1228-05', 'TCGA-32-2498', '0d5e5a6b-5113-43f2-836c-776207b21b56', NULL, 'TCGA-32-2498-01A', '6db4187c-5e48-45ac-8ae3-6b55198ff65a', 0.0468343049332892), ('d8919d77-45ab-438a-825d-51bdb1310659', '43256bf0-b759-4b49-b76f-6d015376326b', 'cg19288520', 'TCGA-BR-4186-01A-01D-1129-05', 'TCGA-BR-4186', '65834878-0e8d-4741-9e4c-2316105ad40d', NULL, 'TCGA-BR-4186-01A', '9f1a5a8a-aa4b-498b-b522-74eec31b203c', 0.00998528122437617), ('d8919d77-45ab-438a-825d-51bdb1310659', '43256bf0-b759-4b49-b76f-6d015376326b', 'cg02982690', 'TCGA-BR-4186-01A-01D-1129-05', 'TCGA-BR-4186', '65834878-0e8d-4741-9e4c-2316105ad40d', NULL, 'TCGA-BR-4186-01A', '9f1a5a8a-aa4b-498b-b522-74eec31b203c', 0.52556277802091), ('760cb9b6-8ce3-4a63-b0ff-de8c025b40ea', 'c2157a0b-005e-4cec-a3a9-1fef20427fa5', 'cg25255679', 'TCGA-BR-4186-11A-01D-1129-05', 'TCGA-BR-4186', '65834878-0e8d-4741-9e4c-2316105ad40d', NULL, 'TCGA-BR-4186-11A', '4248ce51-50a0-46b8-95c4-a1ec95441728', 0.187177344525507);
-- DBMS: snowflake
create or replace TABLE CLINICAL_DIAGNOSES_TREATMENTS_GDC_R24 (
	"diag__treat__treatment_id" VARCHAR(16777216),
	"diag__diagnosis_id" VARCHAR(16777216),
	"case_id" VARCHAR(16777216),
	"diag__treat__treatment_type" VARCHAR(16777216),
	"diag__treat__treatment_or_therapy" VARCHAR(16777216),
	"diag__treat__state" VARCHAR(16777216),
	"diag__treat__created_datetime" VARCHAR(16777216),
	"diag__treat__updated_datetime" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."CLINICAL_DIAGNOSES_TREATMENTS_GDC_R24" (diag__treat__treatment_type, diag__treat__updated_datetime, diag__treat__state, diag__treat__created_datetime, diag__treat__treatment_or_therapy, diag__diagnosis_id, case_id, diag__treat__treatment_id) VALUES ('Radiation Therapy, NOS', '2019-07-31T15:27:49.322818-05:00', 'released', NULL, 'no', 'd5555aa3-4849-59ea-9d9c-1c0add28b7d4', 'ca400ea1-3e4e-437e-a54c-446431b741da', 'f2f0b186-4392-515d-894b-c7cf42c26e60'), ('Radiation Therapy, NOS', '2019-07-31T18:46:05.862882-05:00', 'released', NULL, 'no', '70e600df-b0f3-5918-8ad6-6c0dad10fb6b', '0be4fa90-0122-4b26-b35f-7b1a4a16e63b', '77adcdb4-fa5e-50c2-ac44-83c1e44f306f'), ('Radiation Therapy, NOS', '2019-07-31T20:27:10.759651-05:00', 'released', NULL, 'no', '3377a3ed-2d60-5d32-b546-ddfa73564aa6', '54a0e4d7-c274-4569-9c25-45bbe26d7f21', '1764121a-3e23-5039-8050-9a1147fe1239'), ('Radiation Therapy, NOS', '2019-07-31T18:28:08.017634-05:00', 'released', NULL, 'no', '63b14ab8-f769-59de-8461-511bb8940309', '4f601d7b-8db1-4c6d-9374-21dcd804980d', '1a3760ee-1f4c-54de-a549-014a4edc68df'), ('Radiation Therapy, NOS', '2019-07-31T18:03:09.012220-05:00', 'released', NULL, 'no', '2d8999c3-4a1c-5ade-a1ce-01cfaed3b53d', '2faf928d-453a-4d07-b058-b5d4e1d13845', '7b5889bb-fe8d-5281-b6c4-deb1f427589f');
-- DBMS: snowflake
create or replace TABLE DNA_METHYLATION_CHR8_HG19_GDC_2017_01 (
	"project_short_name" VARCHAR(16777216),
	"case_barcode" VARCHAR(16777216),
	"sample_barcode" VARCHAR(16777216),
	"aliquot_barcode" VARCHAR(16777216),
	"probe_id" VARCHAR(16777216),
	"beta_value" FLOAT,
	"platform" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."DNA_METHYLATION_CHR8_HG19_GDC_2017_01" (project_short_name, beta_value, sample_barcode, aliquot_barcode, case_barcode, platform, probe_id) VALUES ('TCGA-OV', 0.03, 'TCGA-01-0628-11A', 'TCGA-01-0628-11A-01D-0383-05', 'TCGA-01-0628', 'HumanMethylation27', 'cg05237543'), ('TCGA-OV', 0.03, 'TCGA-01-0631-11A', 'TCGA-01-0631-11A-01D-0383-05', 'TCGA-01-0631', 'HumanMethylation27', 'cg04004861'), ('TCGA-OV', 0.0, 'TCGA-01-0631-11A', 'TCGA-01-0631-11A-01D-0383-05', 'TCGA-01-0631', 'HumanMethylation27', 'cg11719412'), ('TCGA-OV', 0.87, 'TCGA-01-0637-11A', 'TCGA-01-0637-11A-01D-0383-05', 'TCGA-01-0637', 'HumanMethylation27', 'cg21649520'), ('TCGA-OV', 0.14, 'TCGA-01-0642-11A', 'TCGA-01-0642-11A-02D-0383-05', 'TCGA-01-0642', 'HumanMethylation27', 'cg26401870');
-- DBMS: snowflake
create or replace TABLE RNASEQ_HG38_GDC_2017_12 (
	"project_short_name" VARCHAR(16777216),
	"case_barcode" VARCHAR(16777216),
	"sample_barcode" VARCHAR(16777216),
	"aliquot_barcode" VARCHAR(16777216),
	"gene_name" VARCHAR(16777216),
	"gene_type" VARCHAR(16777216),
	"Ensembl_gene_id" VARCHAR(16777216),
	"Ensembl_gene_id_v" VARCHAR(16777216),
	"HTSeq__Counts" NUMBER(38,0),
	"HTSeq__FPKM" FLOAT,
	"HTSeq__FPKM_UQ" FLOAT,
	"case_gdc_id" VARCHAR(16777216),
	"sample_gdc_id" VARCHAR(16777216),
	"aliquot_gdc_id" VARCHAR(16777216),
	"file_gdc_id" VARCHAR(16777216),
	"platform" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."RNASEQ_HG38_GDC_2017_12" (aliquot_barcode, platform, gene_type, project_short_name, HTSeq__FPKM, case_barcode, aliquot_gdc_id, case_gdc_id, HTSeq__Counts, Ensembl_gene_id, HTSeq__FPKM_UQ, sample_barcode, file_gdc_id, sample_gdc_id, gene_name, Ensembl_gene_id_v) VALUES ('TCGA-04-1331-01A-01R-1569-13', NULL, 'transcribed_unprocessed_pseudogene', 'TCGA-OV', 0.0866565414183, 'TCGA-04-1331', '7fbfdb3e-1fd2-4206-8d2e-7f68e4a15844', '6d10d4ee-6331-4bba-93bc-a7b64cc0b22a', 6, 'ENSG00000226074', 1907.67064829, 'TCGA-04-1331-01A', '776adc23-7d40-4c1a-94df-7a2ce6188db6', 'a1ec9279-c1a6-4e58-97ed-9ec1f36187c5', 'PRSS44', 'ENSG00000226074.4'), ('TCGA-04-1331-01A-01R-1569-13', NULL, 'protein_coding', 'TCGA-OV', 29.9505889395, 'TCGA-04-1331', '7fbfdb3e-1fd2-4206-8d2e-7f68e4a15844', '6d10d4ee-6331-4bba-93bc-a7b64cc0b22a', 6518, 'ENSG00000143811', 659336.94657, 'TCGA-04-1331-01A', '776adc23-7d40-4c1a-94df-7a2ce6188db6', 'a1ec9279-c1a6-4e58-97ed-9ec1f36187c5', 'PYCR2', 'ENSG00000143811.15'), ('TCGA-04-1331-01A-01R-1569-13', NULL, 'misc_RNA', 'TCGA-OV', 0.0, 'TCGA-04-1331', '7fbfdb3e-1fd2-4206-8d2e-7f68e4a15844', '6d10d4ee-6331-4bba-93bc-a7b64cc0b22a', 0, 'ENSG00000263999', 0.0, 'TCGA-04-1331-01A', '776adc23-7d40-4c1a-94df-7a2ce6188db6', 'a1ec9279-c1a6-4e58-97ed-9ec1f36187c5', 'RN7SL42P', 'ENSG00000263999.2'), ('TCGA-04-1332-01A-01R-1564-13', NULL, 'processed_pseudogene', 'TCGA-OV', 0.910341209536, 'TCGA-04-1332', '08e7c700-7038-40b5-bec0-2dd402e1a225', 'b46263ab-c3ca-4fda-a895-74c7e6e6fe22', 24, 'ENSG00000226986', 22439.196789, 'TCGA-04-1332-01A', 'e56da01f-19fd-4532-bb05-56389af50078', 'b8243412-b7b4-4a7b-b823-4b33488ff429', 'RP11-543B16.2', 'ENSG00000226986.4'), ('TCGA-04-1332-01A-01R-1564-13', NULL, 'processed_pseudogene', 'TCGA-OV', 0.122232040971, 'TCGA-04-1332', '08e7c700-7038-40b5-bec0-2dd402e1a225', 'b46263ab-c3ca-4fda-a895-74c7e6e6fe22', 2, 'ENSG00000270248', 3012.92393723, 'TCGA-04-1332-01A', 'e56da01f-19fd-4532-bb05-56389af50078', 'b8243412-b7b4-4a7b-b823-4b33488ff429', 'CTC-471J1.10', 'ENSG00000270248.1');
-- DBMS: snowflake
create or replace TABLE DNA_METHYLATION_CHR16_HG38_GDC_2017_01 (
	"case_barcode" VARCHAR(16777216),
	"sample_barcode" VARCHAR(16777216),
	"aliquot_barcode" VARCHAR(16777216),
	"probe_id" VARCHAR(16777216),
	"beta_value" FLOAT,
	"platform" VARCHAR(16777216),
	"file_gdc_id" VARCHAR(16777216),
	"case_gdc_id" VARCHAR(16777216),
	"sample_gdc_id" VARCHAR(16777216),
	"aliquot_gdc_id" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."DNA_METHYLATION_CHR16_HG38_GDC_2017_01" (beta_value, case_barcode, aliquot_gdc_id, file_gdc_id, probe_id, case_gdc_id, sample_barcode, aliquot_barcode, platform, sample_gdc_id) VALUES (0.0342040294928375, 'TCGA-32-2498', '6e65d823-0d94-4d26-b60a-2f168cbe2ba8', '6db4187c-5e48-45ac-8ae3-6b55198ff65a', 'cg19837824', '0d5e5a6b-5113-43f2-836c-776207b21b56', 'TCGA-32-2498-01A', 'TCGA-32-2498-01A-01D-1228-05', NULL, '58af038c-bd40-4123-a6d3-11061f0d38e1'), (0.889064628205385, 'TCGA-32-2498', '6e65d823-0d94-4d26-b60a-2f168cbe2ba8', '6db4187c-5e48-45ac-8ae3-6b55198ff65a', 'cg16454349', '0d5e5a6b-5113-43f2-836c-776207b21b56', 'TCGA-32-2498-01A', 'TCGA-32-2498-01A-01D-1228-05', NULL, '58af038c-bd40-4123-a6d3-11061f0d38e1'), (0.938216357843059, 'TCGA-32-2498', '6e65d823-0d94-4d26-b60a-2f168cbe2ba8', '6db4187c-5e48-45ac-8ae3-6b55198ff65a', 'cg06810461', '0d5e5a6b-5113-43f2-836c-776207b21b56', 'TCGA-32-2498-01A', 'TCGA-32-2498-01A-01D-1228-05', NULL, '58af038c-bd40-4123-a6d3-11061f0d38e1'), (0.0529664018100597, 'TCGA-A6-2670', 'b8074b70-ad2b-49e5-b70a-c6e8a6681830', 'cdd5e1a9-1ce8-4361-9fca-61ccb7098b25', 'cg01931893', '65bb7520-f055-43a8-b735-1152fa2c9e04', 'TCGA-A6-2670-01A', 'TCGA-A6-2670-01A-02D-0820-05', NULL, '724072ae-40b5-45cc-b339-e24f1cb6fbcf'), (0.0289769167055513, 'TCGA-A6-2670', 'b8074b70-ad2b-49e5-b70a-c6e8a6681830', 'cdd5e1a9-1ce8-4361-9fca-61ccb7098b25', 'cg12265604', '65bb7520-f055-43a8-b735-1152fa2c9e04', 'TCGA-A6-2670-01A', 'TCGA-A6-2670-01A-02D-0820-05', NULL, '724072ae-40b5-45cc-b339-e24f1cb6fbcf');
-- DBMS: snowflake
create or replace TABLE DNA_METHYLATION_CHR16_HG19_GDC_2017_01 (
	"project_short_name" VARCHAR(16777216),
	"case_barcode" VARCHAR(16777216),
	"sample_barcode" VARCHAR(16777216),
	"aliquot_barcode" VARCHAR(16777216),
	"probe_id" VARCHAR(16777216),
	"beta_value" FLOAT,
	"platform" VARCHAR(16777216)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."DNA_METHYLATION_CHR16_HG19_GDC_2017_01" (platform, case_barcode, project_short_name, probe_id, aliquot_barcode, sample_barcode, beta_value) VALUES ('HumanMethylation27', 'TCGA-01-0628', 'TCGA-OV', 'cg24826867', 'TCGA-01-0628-11A-01D-0383-05', 'TCGA-01-0628-11A', 0.01), ('HumanMethylation27', 'TCGA-01-0628', 'TCGA-OV', 'cg12317456', 'TCGA-01-0628-11A-01D-0383-05', 'TCGA-01-0628-11A', 0.04), ('HumanMethylation27', 'TCGA-01-0628', 'TCGA-OV', 'cg20772904', 'TCGA-01-0628-11A-01D-0383-05', 'TCGA-01-0628-11A', 0.03), ('HumanMethylation27', 'TCGA-01-0628', 'TCGA-OV', 'cg07842593', 'TCGA-01-0628-11A-01D-0383-05', 'TCGA-01-0628-11A', 0.01), ('HumanMethylation27', 'TCGA-01-0628', 'TCGA-OV', 'cg21369679', 'TCGA-01-0628-11A-01D-0383-05', 'TCGA-01-0628-11A', 0.0);
-- DBMS: snowflake
create or replace TABLE CLINICAL_DIAGNOSIS_TREATMENT_GDC_R38 (
	"diag__treat__treatment_id" VARCHAR(16777216),
	"diag__diagnosis_id" VARCHAR(16777216),
	"case_id" VARCHAR(16777216),
	"diag__treat__treatment_type" VARCHAR(16777216),
	"diag__treat__treatment_or_therapy" BOOLEAN,
	"diag__treat__state" VARCHAR(16777216),
	"diag__treat__created_datetime" NUMBER(38,0),
	"diag__treat__updated_datetime" NUMBER(38,0)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."CLINICAL_DIAGNOSIS_TREATMENT_GDC_R38" (diag__treat__treatment_type, case_id, diag__treat__created_datetime, diag__treat__state, diag__treat__treatment_or_therapy, diag__treat__treatment_id, diag__diagnosis_id, diag__treat__updated_datetime) VALUES ('Pharmaceutical Therapy, NOS', '5f22e050-c172-4f2d-a1f9-6cb749b6ef98', 1556466135017293, 'released', NULL, 'fddc01c2-9679-5e47-8940-db49de93764d', '6fbb0e59-acad-5a63-ac6e-c6eee1f9f56b', 1564613363187437), ('Pharmaceutical Therapy, NOS', '2429c7d4-ae27-432d-9adf-1c6d192bf13c', 1556481576123655, 'released', NULL, '278be024-2282-5010-aead-5e055c2c87ab', 'f8dcf514-12ed-54c3-8772-e7658d035f73', 1564632362128491), ('Pharmaceutical Therapy, NOS', '4510295e-8aa7-4ef1-b2b7-91cc902f8200', 1556477370878922, 'released', NULL, '7fe0abd7-6cd5-50b3-b953-c2cab6c6c881', 'a0253719-0651-5d59-a91e-9bd98889f6ee', 1564627141224068), ('Pharmaceutical Therapy, NOS', '1974470e-ec23-4dfc-8907-2e4052c2a0fc', 1556480314977315, 'released', NULL, '37a34215-eb4f-59a7-8f51-e08014ef1760', '853922aa-a334-5d01-ab7c-dfc1c6b32f0b', 1564630823241780), ('Pharmaceutical Therapy, NOS', '92badeb5-a50e-4a62-a67e-6a8a59c948ab', 1556458579995277, 'released', NULL, 'ced1f214-4d41-574b-988f-22ffefd1b5eb', '20316fd4-aca7-57fa-9966-4076874a372f', 1564604129103908);
-- DBMS: snowflake
create or replace TABLE CLINICAL_DIAGNOSES_TREATMENTS_GDC_R29 (
	"diag__treat__treatment_id" VARCHAR(16777216),
	"diag__diagnosis_id" VARCHAR(16777216),
	"case_id" VARCHAR(16777216),
	"diag__treat__treatment_type" VARCHAR(16777216),
	"diag__treat__treatment_or_therapy" VARCHAR(16777216),
	"diag__treat__state" VARCHAR(16777216),
	"diag__treat__created_datetime" NUMBER(38,0),
	"diag__treat__updated_datetime" NUMBER(38,0)
);

INSERT INTO "TCGA_MITELMAN"."TCGA_VERSIONED"."CLINICAL_DIAGNOSES_TREATMENTS_GDC_R29" (diag__treat__treatment_type, diag__treat__updated_datetime, diag__treat__treatment_or_therapy, diag__treat__treatment_id, diag__treat__created_datetime, case_id, diag__treat__state, diag__diagnosis_id) VALUES ('Radiation Therapy, NOS', 1564621073992534, 'no', '7a761afc-8438-59b4-b1df-9b82e0d95105', NULL, '6ee6ca0a-8702-480d-b2d1-9224e7dd9211', 'released', 'f1207955-f463-570c-b29c-7577ec63f8c2'), ('Radiation Therapy, NOS', 1564621626474598, 'no', '94540d7f-b16e-5ba2-ba24-1794212b620f', NULL, '0b15fcb8-1fb7-497e-80b9-d3db66a3c0a2', 'released', '2c7b5588-2db0-532a-a441-3951f93b40e6'), ('Radiation Therapy, NOS', 1564623240092693, 'no', '70038b40-d1e5-5dba-a15b-10b4ad72d961', NULL, '962fd4e7-9199-43d9-abce-e3dfa46da62c', 'released', 'a9117477-ee48-564f-b57d-141e83666a38'), ('Radiation Therapy, NOS', 1564616182652410, 'no', 'f8f535ab-c153-5298-9911-44085d46490b', NULL, 'c594196e-49ef-4195-a6b6-4ef4a1d9ec15', 'released', '1f283489-a15c-5177-9d42-551a578dd6ae'), ('Radiation Therapy, NOS', 1564636160315045, 'no', 'd0bd69e3-63e7-5ff4-a72d-7385c5c712e9', NULL, '0f3e2f16-1c06-4128-af45-ee73de19ea69', 'released', '38bc33ca-4c04-5663-ad3e-75a34c1e0a01');