nl2sqlproj/spider2-nl2sql huggingface dataset:
-- DBMS: snowflake
create or replace TABLE ASSIGNMENT_2016 (
	"rf_id" VARCHAR(16777216),
	"file_id" VARCHAR(16777216),
	"cname" VARCHAR(16777216),
	"caddress_1" VARCHAR(16777216),
	"caddress_2" VARCHAR(16777216),
	"caddress_3" VARCHAR(16777216),
	"caddress_4" VARCHAR(16777216),
	"reel_no" VARCHAR(16777216),
	"frame_no" VARCHAR(16777216),
	"convey_text" VARCHAR(16777216),
	"record_dt" VARCHAR(16777216),
	"last_update_dt" VARCHAR(16777216),
	"page_count" VARCHAR(16777216),
	"purge_in" VARCHAR(16777216)
);

INSERT INTO "PATENTS_USPTO"."USPTO_OCE_ASSIGNMENT"."ASSIGNMENT_2016" (purge_in, record_dt, caddress_3, frame_no, caddress_4, caddress_1, cname, convey_text, caddress_2, rf_id, file_id, last_update_dt, reel_no, page_count) VALUES ('N', '2014-03-27', 'BOCA RATON, FL 33498', '627', NULL, '20283 STATE ROAD 7', 'CUENOT, FORSYTHE & KIM, LLC', 'ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).', 'STE. 300', '325420627', '14', '2016-12-27', '32542', '14'), ('N', '2013-10-31', 'BOULDER, CO 80302', '780', NULL, '1526 SPRUCE STREET', 'DUFT BORNSEN & FETTIG LLP', 'ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).', 'STE. 302', '315210780', '14', '2016-11-08', '31521', '5'), ('N', '2013-09-21', 'FAIRFAX, VA 22033', '75', NULL, '4000 LEGATO RD', 'STEVEN DRISKILL', 'ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).', 'STE. 310', '312550075', '14', '2014-02-27', '31255', '8'), ('N', '2014-04-01', 'PLANO, TX 75024', '937', NULL, '5601 GRANITE PARKWAY', 'MICHAEL W. PIPER', 'ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).', 'STE. 500', '325740937', '14', '2016-10-04', '32574', '3'), ('N', '2014-02-14', 'PLANO, TX 75024', '586', NULL, '5601 GRANITE PARKWAY', 'MICHAEL W. PIPER', 'ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).', 'STE. 500', '322160586', '14', '2016-01-19', '32216', '3');
-- DBMS: snowflake
create or replace TABLE ASSIGNMENT_CONVEYANCE_2016 (
	"rf_id" VARCHAR(16777216),
	"convey_ty" VARCHAR(16777216),
	"employer_assign" VARCHAR(16777216)
);

INSERT INTO "PATENTS_USPTO"."USPTO_OCE_ASSIGNMENT"."ASSIGNMENT_CONVEYANCE_2016" (rf_id, employer_assign, convey_ty) VALUES ('305130929', '1', 'assignment'), ('305140893', '1', 'assignment'), ('305150863', '1', 'assignment'), ('305160304', '1', 'assignment'), ('305160497', '1', 'assignment');
-- DBMS: snowflake
create or replace TABLE ASSIGNEE_2016 (
	"rf_id" VARCHAR(16777216),
	"ee_name" VARCHAR(16777216),
	"ee_address_1" VARCHAR(16777216),
	"ee_address_2" VARCHAR(16777216),
	"ee_city" VARCHAR(16777216),
	"ee_state" VARCHAR(16777216),
	"ee_postcode" VARCHAR(16777216),
	"ee_country" VARCHAR(16777216)
);

INSERT INTO "PATENTS_USPTO"."USPTO_OCE_ASSIGNMENT"."ASSIGNEE_2016" (ee_name, ee_country, ee_address_1, ee_city, ee_postcode, ee_address_2, rf_id, ee_state) VALUES ('JIDOSHA DENKI KOGYO KABUSHIKI KAISHA', 'JAPAN', NULL, 'YOKOHAMA-CITY, KANAGAWA-PREFECTURE', NULL, 'NO. 1760, HIGASHIMATANO-CHO, TOTSUKA-KU', '85010106', NULL), ('NISSAN MOTOR CO., LTD.', 'JAPAN', NULL, 'YOKOHAMA CITY', NULL, 'NO. 2, TAKARA-CHO, KANAGAWA-KU', '85050362', NULL), ('CANON KABUSHIKI KAISHA', 'JAPAN', NULL, 'TOKYO', NULL, '30-2, 3-CHOME, SHIMOMARUKO, OHTA-KU', '85110426', NULL), ('SONY CORPORATION', 'JAPAN', NULL, 'TOKYO', NULL, '7-35 KITASHINAGAWA 6-CHOME, SHINAGWA-KU', '85130767', NULL), ('OKI ELECTRIC INDUSTRY CO., LTD.', 'JAPAN', NULL, 'TOKYO', NULL, '7-12, TORANOMON 1-CHOME MINATO-KU', '85690341', NULL);
-- DBMS: snowflake
create or replace TABLE PLATINUM_GENOMES_DEEPVARIANT_VARIANTS_20180823 (
	"reference_name" VARCHAR(16777216),
	"start_position" NUMBER(38,0),
	"end_position" NUMBER(38,0),
	"reference_bases" VARCHAR(16777216),
	"alternate_bases" VARIANT,
	"names" VARIANT,
	"quality" FLOAT,
	"filter" VARIANT,
	"call" VARIANT,
	"partition_date_please_ignore" DATE
);

INSERT INTO "HUMAN_GENOME_VARIANTS"."HUMAN_GENOME_VARIANTS"."PLATINUM_GENOMES_DEEPVARIANT_VARIANTS_20180823" (names, alternate_bases, start_position, reference_name, end_position, partition_date_please_ignore, filter, reference_bases, call, quality) VALUES ('[]', '[
  {
    "alt": "<*>"
  }
]', 39004530, 'chr21', 39004542, '2018-08-23', '[]', 'A', '[
  {
    "AD": [],
    "GL": [],
    "GQ": 48,
    "MIN_DP": 47,
    "PL": [
      0,
      171,
      1709
    ],
    "VAF": [],
    "filter": [],
    "genotype": [
      0,
      0
    ],
    "name": "NA12877",
    "quality": 0.000000000000000e+00
  }
]', 0.0), ('[]', '[
  {
    "alt": "<*>"
  }
]', 37869301, 'chr21', 37869303, '2018-08-23', '[]', 'A', '[
  {
    "AD": [],
    "GL": [],
    "GQ": 15,
    "MIN_DP": 5,
    "PL": [
      0,
      15,
      149
    ],
    "VAF": [],
    "filter": [],
    "genotype": [
      0,
      0
    ],
    "name": "NA12877",
    "quality": 0.000000000000000e+00
  }
]', 0.0), ('[]', '[
  {
    "alt": "<*>"
  }
]', 36741630, 'chr21', 36741935, '2018-08-23', '[]', 'C', '[
  {
    "AD": [],
    "GL": [],
    "GQ": 50,
    "MIN_DP": 52,
    "PL": [
      0,
      168,
      1679
    ],
    "VAF": [],
    "filter": [],
    "genotype": [
      0,
      0
    ],
    "name": "NA12877",
    "quality": 0.000000000000000e+00
  }
]', 0.0), ('[]', '[
  {
    "alt": "<*>"
  }
]', 35354822, 'chr21', 35354824, '2018-08-23', '[]', 'C', '[
  {
    "AD": [],
    "GL": [],
    "GQ": 50,
    "MIN_DP": 50,
    "PL": [
      0,
      150,
      1499
    ],
    "VAF": [],
    "filter": [],
    "genotype": [
      0,
      0
    ],
    "name": "NA12877",
    "quality": 0.000000000000000e+00
  }
]', 0.0), ('[]', '[
  {
    "alt": "<*>"
  }
]', 37579773, 'chr21', 37579785, '2018-08-23', '[]', 'C', '[
  {
    "AD": [],
    "GL": [],
    "GQ": 50,
    "MIN_DP": 47,
    "PL": [
      0,
      165,
      1649
    ],
    "VAF": [],
    "filter": [],
    "genotype": [
      0,
      0
    ],
    "name": "NA12877",
    "quality": 0.000000000000000e+00
  }
]', 0.0);
-- DBMS: snowflake
create or replace TABLE SIMONS_GENOME_DIVERSITY_PROJECT_SAMPLE_METADATA (
	"Panel" VARCHAR(16777216),
	SGDP_ID VARCHAR(16777216),
	"Population_ID" VARCHAR(16777216),
	"Region" VARCHAR(16777216),
	"Country" VARCHAR(16777216),
	"Contributor" VARCHAR(16777216),
	"Gender" VARCHAR(16777216),
	"Latitude" FLOAT,
	"Longitude" FLOAT,
	"Coverage" NUMBER(38,0),
	"HetRateAuto" FLOAT
);

INSERT INTO "HUMAN_GENOME_VARIANTS"."HUMAN_GENOME_VARIANTS"."SIMONS_GENOME_DIVERSITY_PROJECT_SAMPLE_METADATA" (SGDP_ID, Coverage, Panel, Gender, HetRateAuto, Region, Longitude, Population_ID, Latitude, Country, Contributor) VALUES ('S_Esan-2', 39, 'C', 'F', 0.00096, 'Africa', 6.0, 'Esan', 6.5, 'Nigeria', '1KG'), ('S_Mandenka-2', 37, 'C', 'F', 0.00096, 'Africa', -12.0, 'Mandenka', 12.0, 'Senegal', 'Howard Cann'), ('S_Biaka-2', 42, 'C', 'M', 0.001, 'Africa', 17.0, 'Biaka', 4.0, 'Central African Republic', 'Howard Cann'), ('S_BantuHerero-2', 39, 'C', 'M', 0.00097, 'Africa', 19.0, 'BantuHerero', -22.0, 'BotswanaOrNamibia', 'Howard Cann'), ('B_Mbuti-4', 37, 'B', 'M', 0.00098, 'Africa', 29.0, 'Mbuti', 1.0, 'Congo', 'Howard Cann');
-- DBMS: snowflake
create or replace TABLE _1000_GENOMES_PEDIGREE (
	"Family_ID" VARCHAR(16777216),
	"Individual_ID" VARCHAR(16777216),
	"Paternal_ID" VARCHAR(16777216),
	"Maternal_ID" VARCHAR(16777216),
	"Gender" NUMBER(38,0),
	"Phenotype" NUMBER(38,0),
	"Population" VARCHAR(16777216),
	"Relationship" VARCHAR(16777216),
	"Siblings" VARCHAR(16777216),
	"Second_Order" VARCHAR(16777216),
	"Third_Order" VARCHAR(16777216),
	"Other_Comments" VARCHAR(16777216)
);

INSERT INTO "HUMAN_GENOME_VARIANTS"."HUMAN_GENOME_VARIANTS"."_1000_GENOMES_PEDIGREE" (Maternal_ID, Other_Comments, Relationship, Family_ID, Individual_ID, Paternal_ID, Siblings, Second_Order, Third_Order, Gender, Population, Phenotype) VALUES ('HG02282', '0', 'child', 'BB24', 'HG02321', 'HG02281', '0', '0', '0', 2, 'ACB', 0), ('HG01989', '0', 'child', 'BB11', 'HG01960', 'HG01988', '0', '0', '0', 2, 'ACB', 0), ('HG02010', '0', 'child', 'BB13', 'HG02011', 'HG02009', '0', '0', '0', 1, 'ACB', 0), ('HG02450', '0', 'child', 'BB46', 'HG02451', 'HG02449', '0', '0', '0', 2, 'ACB', 0), ('HG01886', '0', 'child', 'BB04', 'HG01887', 'HG02014', '0', '0', '0', 1, 'ACB', 0);
-- DBMS: snowflake
create or replace TABLE SIMONS_GENOME_DIVERSITY_PROJECT_SAMPLE_ATTRIBUTES (
	"era_id" VARCHAR(16777216),
	"population" VARCHAR(16777216),
	"region" VARCHAR(16777216),
	"country" VARCHAR(16777216),
	"latitude" FLOAT,
	"longitude" FLOAT,
	"sex" VARCHAR(16777216),
	"dna_source" VARCHAR(16777216),
	"illumina_id" VARCHAR(16777216),
	"ena_checklist" VARCHAR(16777216),
	"ena_spot_count" NUMBER(38,0),
	"ena_base_count" NUMBER(38,0),
	"ena_first_public" DATE,
	"ena_last_update" DATE,
	"town" VARCHAR(16777216),
	"id_from_vcf" VARCHAR(16777216)
);

INSERT INTO "HUMAN_GENOME_VARIANTS"."HUMAN_GENOME_VARIANTS"."SIMONS_GENOME_DIVERSITY_PROJECT_SAMPLE_ATTRIBUTES" (illumina_id, ena_checklist, id_from_vcf, region, ena_last_update, latitude, era_id, ena_spot_count, country, sex, longitude, ena_first_public, town, ena_base_count, dna_source, population) VALUES ('LP6005443-DNA_B10', 'ERC000011', 'LP6005443-DNA_B10', 'WestEurasia', NULL, 35.6, 'SAMEA3302612', 699656393, 'Iran', 'male', 51.5, NULL, 'migrants_collected_in_Kuwait', 139931278600, 'Genomic from blood', 'Iranian'), ('LP6005592-DNA_E01', 'ERC000011', 'LP6005592-DNA_E01', 'WestEurasia', NULL, 33.3, 'SAMEA3302705', 725700624, 'Iraq', 'male', 44.4, NULL, NULL, 145140124800, 'Genomic from cell lines', 'Iraqi_Jew'), ('LP6005519-DNA_G02', 'ERC000011', 'LP6005519-DNA_G02', 'America', NULL, -13.5, 'SAMEA3302709', 912946648, 'Peru', NULL, -72.0, NULL, NULL, 182589329600, NULL, 'Quechua'), ('LP6005677-DNA_E01', 'ERC000011', 'LP6005677-DNA_E01', 'America', NULL, -13.5, 'SAMEA3302848', 687276851, 'Peru', 'male', -72.0, NULL, NULL, 137455370200, 'Genomic from cell lines', 'Quechua'), ('LP6005443-DNA_B01', 'ERC000011', 'LP6005443-DNA_B01', 'EastAsia', NULL, 21.0, 'SAMEA3302864', 611088622, 'China', 'male', 100.0, NULL, NULL, 122217724400, 'Genomic from cell lines', 'Dai');
-- DBMS: snowflake
create or replace TABLE SALES (
	"invoice_and_item_number" VARCHAR(16777216),
	"date" DATE,
	"store_number" VARCHAR(16777216),
	"store_name" VARCHAR(16777216),
	"address" VARCHAR(16777216),
	"city" VARCHAR(16777216),
	"zip_code" VARCHAR(16777216),
	"store_location" BINARY(8388608),
	"county_number" VARCHAR(16777216),
	"county" VARCHAR(16777216),
	"category" VARCHAR(16777216),
	"category_name" VARCHAR(16777216),
	"vendor_number" VARCHAR(16777216),
	"vendor_name" VARCHAR(16777216),
	"item_number" VARCHAR(16777216),
	"item_description" VARCHAR(16777216),
	"pack" NUMBER(38,0),
	"bottle_volume_ml" NUMBER(38,0),
	"state_bottle_cost" FLOAT,
	"state_bottle_retail" FLOAT,
	"bottles_sold" NUMBER(38,0),
	"sale_dollars" FLOAT,
	"volume_sold_liters" FLOAT,
	"volume_sold_gallons" FLOAT
);

INSERT INTO "IOWA_LIQUOR_SALES"."IOWA_LIQUOR_SALES"."SALES" (vendor_name, item_number, address, bottle_volume_ml, city, invoice_and_item_number, state_bottle_cost, state_bottle_retail, vendor_number, pack, category_name, store_name, item_description, sale_dollars, store_location, zip_code, county_number, county, volume_sold_liters, store_number, bottles_sold, category, date, volume_sold_gallons) VALUES ('REMY COINTREAU USA         .', '64776', '2890 DEVILS GLEN ROAD', 750, 'BETTENDORF', 'S07801100105', 23.31, 34.96, '389', 12, 'MISC. IMPORTED CORDIALS & LIQUEURS', 'HY-VEE WINE AND SPIRITS / BETTENDORF', 'COINTREAU LIQUEUR', 104.88, 'bytearray(b''\x01\x01\x00\x00\x00\xb8\x02\n\xf5\xf4\x9eV\xc0E+\xf7\x02\xb3\xc6D@'')', '52722', '82', 'SCOTT', 2.25, '2603', 3, '1082900.0', '2012-09-18', 0.59), ('REMY COINTREAU USA INC', '64776', '4605 FLEUR DRIVE', 750, 'DES MOINES', 'INV-12144100115', 19.99, 29.99, '389.0', 12, 'IMPORTED CORDIALS & LIQUEURS', 'HY-VEE FOOD STORE / FLEUR / DSM', 'COINTREAU LIQUEUR', 89.97, 'bytearray(b''\x01\x01\x00\x00\x0002\x01\xbfFiW\xc0\x16\xfc6\xc4x\xc5D@'')', '50321.0', '77', 'POLK', 2.25, '2561', 3, '1082000.0', '2018-05-17', 0.59), ('REMY COINTREAU USA INC', '64776', '6301 UNIVERSITY', 750, 'CEDAR FALLS', 'INV-70258000176', 22.98, 34.47, '389', 12, 'IMPORTED CORDIALS & LIQUEURS', 'HY-VEE FOOD STORE / CEDAR FALLS', 'COINTREAU LIQUEUR', 103.41, 'bytearray(b''\x01\x01\x00\x00\x00S.\x8a\xa7\xc9\x1bW\xc0}\x82\xef\xf6\x93AE@'')', '50613.0', NULL, 'BLACK HAWK', 2.25, '2572', 3, '1082100.0', '2024-05-16', 0.59), ('REMY COINTREAU USA INC', '64776', '2510 SW STATE ST', 750, 'ANKENY', 'INV-04954600142', 19.99, 29.99, '389', 12, 'IMPORTED CORDIALS & LIQUEURS', 'HY-VEE #2 / ANKENY', 'COINTREAU LIQUEUR', 89.97, 'bytearray(b''\x01\x01\x00\x00\x00\x8c\xf7\xe3\xf6\xcbgW\xc0\r\xc4\xb2\x99C\xdaD@'')', '50023.0', '77', 'POLK', 2.25, '2666', 3, '1082000.0', '2017-05-16', 0.59), ('REMY COINTREAU USA INC', '64776', '4313 FLEUR DR', 750, 'DES MOINES', 'INV-37848500014', 20.47, 30.71, '389', 12, 'IMPORTED CORDIALS & LIQUEURS', 'FAREWAY STORES #183 / FLEUR', 'COINTREAU LIQUEUR', 89.97, 'bytearray(b''\x01\x01\x00\x00\x00\xdc\xd7\x81sFiW\xc0\xbb{\x80\xee\xcb\xc5D@'')', '50321.0', '77', 'POLK', 2.25, '5533', 3, '1082000.0', '2021-06-28', 0.59);
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_COLORS (
	"ColorID" NUMBER(38,0),
	"ColorName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_COLORS" (ColorName, ColorID, LastEditedBy, ValidTo, ValidFrom) VALUES ('Black', 3, 1, 253402300799999999, 1356998400000000), ('Blue', 4, 1, 253402300799999999, 1356998400000000), ('Charcoal', 5, 1, 253402300799999999, 1356998400000000), ('Chartreuse', 6, 1, 253402300799999999, 1356998400000000), ('Dark Brown', 8, 1, 253402300799999999, 1356998400000000);
-- DBMS: snowflake
create or replace TABLE SALES_SPECIALDEALS (
	"SpecialDealID" NUMBER(38,0),
	"StockItemID" VARCHAR(16777216),
	"CustomerID" VARCHAR(16777216),
	"BuyingGroupID" NUMBER(38,0),
	"CustomerCategoryID" VARCHAR(16777216),
	"StockGroupID" NUMBER(38,0),
	"DealDescription" VARCHAR(16777216),
	"StartDate" DATE,
	"EndDate" DATE,
	"DiscountAmount" VARCHAR(16777216),
	"DiscountPercentage" FLOAT,
	"UnitPrice" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."SALES_SPECIALDEALS" (DealDescription, DiscountAmount, DiscountPercentage, CustomerID, LastEditedBy, CustomerCategoryID, BuyingGroupID, UnitPrice, StockItemID, StockGroupID, StartDate, EndDate, SpecialDealID, LastEditedWhen) VALUES ;
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_STOCKGROUPS (
	"StockGroupID" NUMBER(38,0),
	"StockGroupName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_STOCKGROUPS" (StockGroupName, StockGroupID, ValidFrom, ValidTo, LastEditedBy) VALUES ('Mugs', 3, 1356998400000000, 253402300799999999, 1), ('Computing Novelties', 6, 1356998400000000, 253402300799999999, 1), ('USB Novelties', 7, 1356998400000000, 253402300799999999, 1), ('Toys', 9, 1356998400000000, 253402300799999999, 1), ('Furry Footwear', 8, 1451664000000000, 253402300799999999, 9);
-- DBMS: snowflake
create or replace TABLE APPLICATION_PAYMENTMETHODS (
	"PaymentMethodID" NUMBER(38,0),
	"PaymentMethodName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."APPLICATION_PAYMENTMETHODS" (PaymentMethodName, ValidFrom, ValidTo, PaymentMethodID, LastEditedBy) VALUES ('Cash', 1356998400000000, 253402300799999999, 1, 1), ('Credit-Card', 1451664000000000, 253402300799999999, 3, 9);
-- DBMS: snowflake
create or replace TABLE SALES_CUSTOMERTRANSACTIONS (
	"CustomerTransactionID" NUMBER(38,0),
	"CustomerID" NUMBER(38,0),
	"TransactionTypeID" NUMBER(38,0),
	"InvoiceID" FLOAT,
	"PaymentMethodID" FLOAT,
	"TransactionDate" VARCHAR(16777216),
	"AmountExcludingTax" FLOAT,
	"TaxAmount" FLOAT,
	"TransactionAmount" FLOAT,
	"OutstandingBalance" FLOAT,
	"FinalizationDate" VARCHAR(16777216),
	"IsFinalized" NUMBER(38,0),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" VARCHAR(16777216)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."SALES_CUSTOMERTRANSACTIONS" (OutstandingBalance, LastEditedBy, FinalizationDate, TransactionAmount, PaymentMethodID, TransactionTypeID, CustomerID, TaxAmount, IsFinalized, AmountExcludingTax, TransactionDate, InvoiceID, LastEditedWhen, CustomerTransactionID) VALUES (0.0, 10, '2013-01-02', 465.75, NULL, 1, 803, 60.75, 1, 405.0, '2013-01-01', 2.0, '2013-01-02 11:30:00.0000000', 5), (0.0, 10, '2013-01-02', 809.6, NULL, 1, 905, 105.6, 1, 704.0, '2013-01-01', 5.0, '2013-01-02 11:30:00.0000000', 15), (0.0, 10, '2013-01-02', 747.5, NULL, 1, 870, 97.5, 1, 650.0, '2013-01-01', 14.0, '2013-01-02 11:30:00.0000000', 46), (0.0, 10, '2013-01-02', 200.1, NULL, 1, 991, 26.1, 1, 174.0, '2013-01-01', 15.0, '2013-01-02 11:30:00.0000000', 49), (0.0, 10, '2013-01-02', 3659.3, NULL, 1, 890, 477.3, 1, 3182.0, '2013-01-01', 22.0, '2013-01-02 11:30:00.0000000', 69);
-- DBMS: snowflake
create or replace TABLE SALES_BUYINGGROUPS (
	"BuyingGroupID" NUMBER(38,0),
	"BuyingGroupName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."SALES_BUYINGGROUPS" (BuyingGroupName, ValidTo, LastEditedBy, BuyingGroupID, ValidFrom) VALUES ('Tailspin Toys', 253402300799999999, 1, 1, 1356998400000000);
-- DBMS: snowflake
create or replace TABLE PURCHASING_PURCHASEORDERLINES (
	"PurchaseOrderLineID" NUMBER(38,0),
	"PurchaseOrderID" NUMBER(38,0),
	"StockItemID" NUMBER(38,0),
	"OrderedOuters" NUMBER(38,0),
	"Description" VARCHAR(16777216),
	"ReceivedOuters" NUMBER(38,0),
	"PackageTypeID" NUMBER(38,0),
	"ExpectedUnitPricePerOuter" FLOAT,
	"LastReceiptDate" VARCHAR(16777216),
	"IsOrderLineFinalized" NUMBER(38,0),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."PURCHASING_PURCHASEORDERLINES" (StockItemID, ExpectedUnitPricePerOuter, LastEditedWhen, Description, IsOrderLineFinalized, LastReceiptDate, OrderedOuters, ReceivedOuters, PackageTypeID, PurchaseOrderID, LastEditedBy, PurchaseOrderLineID) VALUES (25, 4.5, 1358146800000000, 'DBA joke mug - I will get you in order (Black)', 1, '2013-01-14', 26, 26, 7, 40, 2, 234), (30, 4.5, 1358146800000000, 'Developer joke mug - Oct 31 = Dec 25 (White)', 1, '2013-01-14', 27, 27, 7, 40, 2, 235), (108, 19.0, 1357282800000000, 'Superhero action jacket (Blue) XXS', 1, '2013-01-04', 6, 6, 7, 12, 3, 142), (114, 22.0, 1357282800000000, 'Superhero action jacket (Blue) XXL', 1, '2013-01-04', 6, 6, 7, 12, 3, 143), (120, 8.0, 1357282800000000, 'Dinosaur battery-powered slippers (Green) L', 1, '2013-01-04', 36, 36, 7, 12, 3, 145);
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_VEHICLETEMPERATURES (
	"VehicleTemperatureID" NUMBER(38,0),
	"VehicleRegistration" VARCHAR(16777216),
	"ChillerSensorNumber" NUMBER(38,0),
	"RecordedWhen" NUMBER(38,0),
	"Temperature" FLOAT,
	"FullSensorData" VARCHAR(16777216),
	"IsCompressed" NUMBER(38,0),
	"CompressedSensorData" VARCHAR(16777216)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_VEHICLETEMPERATURES" (VehicleRegistration, CompressedSensorData, RecordedWhen, IsCompressed, ChillerSensorNumber, VehicleTemperatureID, Temperature, FullSensorData) VALUES ('WWI-321-A', 'NULL', 1464689767000000, 0, 1, 65731, 3.0, '{"Recordings": [{"type":"Feature", "geometry": {"type":"Point", "coordinates":[-85.3249088,46.5837717] }, "properties":{"rego":"WWI-321-A","sensor":"1,"when":"2016-05-31T10:16:07","temp":3.00}} ]'), ('WWI-321-A', 'NULL', 1464165910000000, 0, 1, 63011, 3.0, '{"Recordings": [{"type":"Feature", "geometry": {"type":"Point", "coordinates":[-117.6318604,63.2988934] }, "properties":{"rego":"WWI-321-A","sensor":"1,"when":"2016-05-25T08:45:10","temp":3.00}} ]'), ('WWI-321-A', 'NULL', 1463488650000000, 0, 1, 59671, 3.0, '{"Recordings": [{"type":"Feature", "geometry": {"type":"Point", "coordinates":[-121.0988238,48.1889402] }, "properties":{"rego":"WWI-321-A","sensor":"1,"when":"2016-05-17T12:37:30","temp":3.00}} ]'), ('WWI-321-A', 'NULL', 1462960351000000, 0, 1, 56863, 3.0, '{"Recordings": [{"type":"Feature", "geometry": {"type":"Point", "coordinates":[-121.1070531,50.7015841] }, "properties":{"rego":"WWI-321-A","sensor":"1,"when":"2016-05-11T09:52:31","temp":3.00}} ]'), ('WWI-321-A', 'NULL', 1462961365000000, 0, 1, 56875, 3.0, '{"Recordings": [{"type":"Feature", "geometry": {"type":"Point", "coordinates":[-110.0691399,65.0214271] }, "properties":{"rego":"WWI-321-A","sensor":"1,"when":"2016-05-11T10:09:25","temp":3.00}} ]');
-- DBMS: snowflake
create or replace TABLE PURCHASING_SUPPLIERTRANSACTIONS (
	"SupplierTransactionID" NUMBER(38,0),
	"SupplierID" NUMBER(38,0),
	"TransactionTypeID" NUMBER(38,0),
	"PurchaseOrderID" VARCHAR(16777216),
	"PaymentMethodID" NUMBER(38,0),
	"SupplierInvoiceNumber" VARCHAR(16777216),
	"TransactionDate" DATE,
	"AmountExcludingTax" FLOAT,
	"TaxAmount" FLOAT,
	"TransactionAmount" FLOAT,
	"OutstandingBalance" FLOAT,
	"FinalizationDate" VARCHAR(16777216),
	"IsFinalized" NUMBER(38,0),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."PURCHASING_SUPPLIERTRANSACTIONS" (FinalizationDate, PaymentMethodID, SupplierInvoiceNumber, IsFinalized, TaxAmount, OutstandingBalance, LastEditedBy, SupplierID, TransactionAmount, LastEditedWhen, AmountExcludingTax, PurchaseOrderID, TransactionTypeID, TransactionDate, SupplierTransactionID) VALUES ('2013-04-08', 4, '8940', 1, 10863.9, 0.0, 2, 4, 83289.9, 1365411600000000, 72426.0, '153', 5, '2013-04-02', 21470), ('2013-04-08', 4, '873', 1, 10966.5, 0.0, 2, 4, 84076.5, 1365411600000000, 73110.0, '155', 5, '2013-04-03', 21757), ('2013-04-08', 4, '5240', 1, 11928.6, 0.0, 2, 4, 91452.6, 1365411600000000, 79524.0, '161', 5, '2013-04-08', 22931), ('2013-04-08', 4, '1691', 1, 1816.38, 0.0, 2, 7, 13925.58, 1365411600000000, 12109.2, '162', 5, '2013-04-08', 22934), ('2013-04-08', 4, '4720', 1, 153.0, 0.0, 2, 7, 1173.0, 1365411600000000, 1020.0, '164', 5, '2013-04-08', 22939);
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_STOCKITEMS (
	"StockItemID" NUMBER(38,0),
	"StockItemName" VARCHAR(16777216),
	"SupplierID" NUMBER(38,0),
	"ColorID" VARCHAR(16777216),
	"UnitPackageID" NUMBER(38,0),
	"OuterPackageID" NUMBER(38,0),
	"Brand" VARCHAR(16777216),
	"Size" VARCHAR(16777216),
	"LeadTimeDays" NUMBER(38,0),
	"QuantityPerOuter" NUMBER(38,0),
	"IsChillerStock" NUMBER(38,0),
	"Barcode" VARCHAR(16777216),
	"TaxRate" FLOAT,
	"UnitPrice" FLOAT,
	"RecommendedRetailPrice" FLOAT,
	"TypicalWeightPerUnit" FLOAT,
	"MarketingComments" VARCHAR(16777216),
	"InternalComments" VARCHAR(16777216),
	"Photo" VARCHAR(16777216),
	"CustomFields" VARCHAR(16777216),
	"Tags" VARCHAR(16777216),
	"SearchDetails" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_STOCKITEMS" (CustomFields, Brand, LastEditedBy, StockItemName, Photo, OuterPackageID, ValidFrom, UnitPackageID, RecommendedRetailPrice, InternalComments, Tags, Barcode, LeadTimeDays, MarketingComments, TaxRate, QuantityPerOuter, StockItemID, UnitPrice, Size, TypicalWeightPerUnit, ValidTo, ColorID, IsChillerStock, SearchDetails, SupplierID) VALUES ('{ "CountryOfManufacture": "USA", "ShelfLife": "7 days", "Tags": [] }', 'NULL', 1, 'Chocolate frogs 250g', 'NULL', 6, 1464735600000000, 1, 12.23, 'NULL', '[]', '8792838293987', 3, 'Perfect for your child''s party', 10.0, 24, 224, 8.55, '250g', 0.25, 253402300799999999, 'NULL', 1, 'Chocolate frogs 250g Perfect for your child''s party', 1), ('{ "CountryOfManufacture": "USA", "ShelfLife": "7 days", "Tags": [] }', 'NULL', 1, 'White chocolate snow balls 250g', 'NULL', 6, 1464735600000000, 1, 12.23, 'NULL', '[]', '8792838293236', 3, 'Perfect for your child''s party', 10.0, 24, 226, 8.55, '250g', 0.25, 253402300799999999, 'NULL', 1, 'White chocolate snow balls 250g Perfect for your child''s party', 1), ('{ "CountryOfManufacture": "China", "Tags": [], "Range": "Children" }', 'NULL', 1, '"The Gu" red shirt XML tag t-shirt (White) 3XS', 'NULL', 6, 1464735600000000, 7, 26.91, 'NULL', '[]', 'NULL', 7, 'NULL', 15.0, 12, 76, 18.0, '3XS', 0.25, 253402300799999999, '35', 0, '"The Gu" red shirt XML tag t-shirt (White) 3XS ', 4), ('{ "CountryOfManufacture": "China", "Tags": [], "Range": "Children" }', 'NULL', 1, '"The Gu" red shirt XML tag t-shirt (White) S', 'NULL', 6, 1464735600000000, 7, 26.91, 'NULL', '[]', 'NULL', 7, 'NULL', 15.0, 12, 79, 18.0, 'S', 0.3, 253402300799999999, '35', 0, '"The Gu" red shirt XML tag t-shirt (White) S ', 4), ('{ "CountryOfManufacture": "China", "Tags": [], "Range": "Teens/Young Adult" }', 'NULL', 1, '"The Gu" red shirt XML tag t-shirt (White) M', 'NULL', 6, 1464735600000000, 7, 26.91, 'NULL', '[]', 'NULL', 7, 'NULL', 15.0, 12, 80, 18.0, 'M', 0.35, 253402300799999999, '35', 0, '"The Gu" red shirt XML tag t-shirt (White) M ', 4);
-- DBMS: snowflake
create or replace TABLE SALES_CUSTOMERCATEGORIES (
	"CustomerCategoryID" NUMBER(38,0),
	"CustomerCategoryName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."SALES_CUSTOMERCATEGORIES" (ValidFrom, CustomerCategoryID, CustomerCategoryName, LastEditedBy, ValidTo) VALUES (1356998400000000, 2, 'Wholesaler', 1, 253402300799999999), (1356998400000000, 4, 'Supermarket', 1, 253402300799999999), (1356998400000000, 5, 'Computer Store', 1, 253402300799999999), (1356998400000000, 7, 'Corporate', 1, 253402300799999999), (1388592900000000, 8, 'General Retailer', 9, 253402300799999999);
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_STOCKITEMSTOCKGROUPS (
	"StockItemStockGroupID" NUMBER(38,0),
	"StockItemID" NUMBER(38,0),
	"StockGroupID" NUMBER(38,0),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_STOCKITEMSTOCKGROUPS" (StockItemID, StockItemStockGroupID, StockGroupID, LastEditedWhen, LastEditedBy) VALUES (2, 5, 1, 1356998400000000, 1), (3, 8, 1, 1356998400000000, 1), (5, 13, 1, 1356998400000000, 1), (12, 34, 1, 1356998400000000, 1), (13, 37, 1, 1356998400000000, 1);
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_COLDROOMTEMPERATURES (
	"ColdRoomTemperatureID" NUMBER(38,0),
	"ColdRoomSensorNumber" NUMBER(38,0),
	"RecordedWhen" NUMBER(38,0),
	"Temperature" FLOAT,
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_COLDROOMTEMPERATURES" (ValidTo, ColdRoomTemperatureID, Temperature, RecordedWhen, ValidFrom, ColdRoomSensorNumber) VALUES (253402300799999999, 3654737, 3.72, 1464739164000000, 1464739164000000, 1), (253402300799999999, 3654738, 4.7, 1464739164000000, 1464739164000000, 2), (253402300799999999, 3654739, 3.0, 1464739164000000, 1464739164000000, 3);
-- DBMS: snowflake
create or replace TABLE APPLICATION_COUNTRIES (
	"CountryID" NUMBER(38,0),
	"CountryName" VARCHAR(16777216),
	"FormalName" VARCHAR(16777216),
	"IsoAlpha3Code" VARCHAR(16777216),
	"IsoNumericCode" NUMBER(38,0),
	"CountryType" VARCHAR(16777216),
	"LatestRecordedPopulation" NUMBER(38,0),
	"Continent" VARCHAR(16777216),
	"Region" VARCHAR(16777216),
	"Subregion" VARCHAR(16777216),
	"Border" FLOAT,
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."APPLICATION_COUNTRIES" (FormalName, ValidTo, CountryName, Region, LatestRecordedPopulation, CountryID, CountryType, Continent, Border, LastEditedBy, Subregion, ValidFrom, IsoAlpha3Code, IsoNumericCode) VALUES ('Commonwealth of the Bahamas', 253402300799999999, 'Bahamas', 'Americas', 309156, 18, 'UN Member State', 'North America', inf, 1, 'Caribbean', 1356998400000000, 'BHS', 44), ('Barbados', 253402300799999999, 'Barbados', 'Americas', 284589, 21, 'UN Member State', 'North America', inf, 1, 'Caribbean', 1356998400000000, 'BRB', 52), ('Commonwealth of Dominica', 253402300799999999, 'Dominica', 'Americas', 72660, 62, 'UN Member State', 'North America', inf, 1, 'Caribbean', 1356998400000000, 'DMA', 212), ('Grenada', 253402300799999999, 'Grenada', 'Americas', 90739, 85, 'UN Member State', 'North America', inf, 1, 'Caribbean', 1356998400000000, 'GRD', 308), ('Federation of Saint Kitts and Nevis', 253402300799999999, 'St. Kitts and Nevis', 'Americas', 40131, 202, 'UN Member State', 'North America', inf, 1, 'Caribbean', 1356998400000000, 'KNA', 659);
-- DBMS: snowflake
create or replace TABLE SALES_INVOICELINES (
	"InvoiceLineID" NUMBER(38,0),
	"InvoiceID" NUMBER(38,0),
	"StockItemID" NUMBER(38,0),
	"Description" VARCHAR(16777216),
	"PackageTypeID" NUMBER(38,0),
	"Quantity" NUMBER(38,0),
	"UnitPrice" FLOAT,
	"TaxRate" FLOAT,
	"TaxAmount" FLOAT,
	"LineProfit" FLOAT,
	"ExtendedPrice" FLOAT,
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."SALES_INVOICELINES" (TaxRate, LineProfit, InvoiceLineID, UnitPrice, StockItemID, Quantity, Description, TaxAmount, ExtendedPrice, LastEditedWhen, InvoiceID, LastEditedBy, PackageTypeID) VALUES (15.0, -14.0, 209233, 2.5, 1, 2, 'USB missile launcher (Green)', 0.75, 5.75, 1456488000000000, 64608, 16, 7), (15.0, -56.0, 207422, 2.5, 1, 8, 'USB missile launcher (Green)', 3.0, 23.0, 1455710400000000, 64026, 7, 7), (15.0, -56.0, 213659, 2.5, 1, 8, 'USB missile launcher (Green)', 3.0, 23.0, 1458648000000000, 65994, 4, 7), (15.0, -56.0, 214206, 2.5, 1, 8, 'USB missile launcher (Green)', 3.0, 23.0, 1458734400000000, 66152, 12, 7), (15.0, 108.5, 2056, 25.0, 1, 7, 'USB missile launcher (Green)', 26.25, 201.25, 1358164800000000, 696, 17, 7);
-- DBMS: snowflake
create or replace TABLE APPLICATION_TRANSACTIONTYPES (
	"TransactionTypeID" NUMBER(38,0),
	"TransactionTypeName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."APPLICATION_TRANSACTIONTYPES" (TransactionTypeName, TransactionTypeID, ValidFrom, LastEditedBy, ValidTo) VALUES ('Customer Refund', 4, 1356998400000000, 1, 253402300799999999), ('Supplier Invoice', 5, 1356998400000000, 1, 253402300799999999), ('Stock Transfer', 9, 1356998400000000, 1, 253402300799999999), ('Stock Receipt', 11, 1356998400000000, 1, 253402300799999999), ('Customer Contra', 13, 1451664300000000, 9, 253402300799999999);
-- DBMS: snowflake
create or replace TABLE PURCHASING_PURCHASEORDER (
	"PurchaseOrderID" NUMBER(38,0),
	"SupplierID" NUMBER(38,0),
	"OrderDate" DATE,
	"DeliveryMethodID" NUMBER(38,0),
	"ContactPersonID" NUMBER(38,0),
	"ExpectedDeliveryDate" DATE,
	"SupplierReference" VARCHAR(16777216),
	"IsOrderFinalized" NUMBER(38,0),
	"Comments" VARCHAR(16777216),
	"InternalComments" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."PURCHASING_PURCHASEORDER" (SupplierReference, DeliveryMethodID, PurchaseOrderID, ContactPersonID, ExpectedDeliveryDate, OrderDate, LastEditedBy, SupplierID, IsOrderFinalized, Comments, InternalComments, LastEditedWhen) VALUES ('BC0280982', 2, 42, 2, '2013-02-01', '2013-01-12', 2, 7, 1, 'NULL', 'NULL', 1358146800000000), ('BC0280982', 2, 138, 2, '2013-04-10', '2013-03-21', 2, 7, 1, 'NULL', 'NULL', 1363935600000000), ('BC0280982', 2, 255, 2, '2013-06-20', '2013-05-31', 2, 7, 1, 'NULL', 'NULL', 1370242800000000), ('BC0280982', 2, 328, 2, '2013-07-27', '2013-07-13', 2, 7, 1, 'NULL', 'NULL', 1373871600000000), ('BC0280982', 2, 400, 2, '2013-09-15', '2013-08-26', 2, 7, 1, 'NULL', 'NULL', 1377586800000000);
-- DBMS: snowflake
create or replace TABLE APPLICATION_DELIVERYMETHODS (
	"DeliveryMethodID" NUMBER(38,0),
	"DeliveryMethodName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."APPLICATION_DELIVERYMETHODS" (ValidTo, ValidFrom, DeliveryMethodName, DeliveryMethodID, LastEditedBy) VALUES (253402300799999999, 1356998400000000, 'Post', 1, 1), (253402300799999999, 1356998400000000, 'Courier', 2, 1), (253402300799999999, 1356998400000000, 'Delivery Van', 3, 1), (253402300799999999, 1356998400000000, 'Customer Courier to Collect', 6, 1), (253402300799999999, 1356998400000000, 'Road Freight', 7, 1);
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_PACKAGETYPES (
	"PackageTypeID" NUMBER(38,0),
	"PackageTypeName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_PACKAGETYPES" (ValidTo, PackageTypeID, PackageTypeName, LastEditedBy, ValidFrom) VALUES (253402300799999999, 4, 'Box', 1, 1356998400000000), (253402300799999999, 5, 'Can', 1, 1356998400000000), (253402300799999999, 7, 'Each', 1, 1356998400000000), (253402300799999999, 8, 'Kg', 1, 1356998400000000), (253402300799999999, 11, 'Pallet', 1, 1356998400000000);
-- DBMS: snowflake
create or replace TABLE APPLICATION_CITIES (
	"CityID" NUMBER(38,0),
	"CityName" VARCHAR(16777216),
	"StateProvinceID" NUMBER(38,0),
	"Location" FLOAT,
	"LatestRecordedPopulation" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."APPLICATION_CITIES" (LastEditedBy, CityName, LatestRecordedPopulation, Location, CityID, ValidTo, StateProvinceID, ValidFrom) VALUES (1, 'Alberta', 'NULL', 8.607660043233205e+52, 323, 253402300799999999, 1, 1356998400000000), (1, 'Fulton', '272', 8.607660043233205e+52, 12470, 253402300799999999, 1, 1356998400000000), (1, 'Marion', '3686', 8.607660043233205e+52, 20985, 253402300799999999, 1, 1356998400000000), (1, 'Opp', '6659', 8.607660043233205e+52, 25499, 253402300799999999, 1, 1356998400000000), (1, 'Cedar Bluff', '1820', 8.607660043233206e+52, 5727, 253402300799999999, 1, 1356998400000000);
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_STOCKITEMHOLDINGS (
	"StockItemID" NUMBER(38,0),
	"QuantityOnHand" NUMBER(38,0),
	"BinLocation" VARCHAR(16777216),
	"LastStocktakeQuantity" NUMBER(38,0),
	"LastCostPrice" FLOAT,
	"ReorderLevel" NUMBER(38,0),
	"TargetStockLevel" NUMBER(38,0),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_STOCKITEMHOLDINGS" (BinLocation, LastEditedBy, LastStocktakeQuantity, TargetStockLevel, LastEditedWhen, StockItemID, ReorderLevel, QuantityOnHand, LastCostPrice) VALUES ('D-2', 3, 14697, 3, 1464696000000000, 175, 2, 15106, 110.0), ('L-3', 3, 194162, 100, 1464696000000000, 5, 5, 199064, 12.0), ('L-3', 3, 192127, 100, 1464696000000000, 6, 5, 196995, 12.0), ('L-3', 3, 187968, 100, 1464696000000000, 9, 5, 192749, 12.0), ('L-3', 3, 217048, 100, 1464696000000000, 10, 5, 222572, 12.0);
-- DBMS: snowflake
create or replace TABLE APPLICATION_SYSTEMPARAMETERS (
	"SystemParameterID" NUMBER(38,0),
	"DeliveryAddressLine1" VARCHAR(16777216),
	"DeliveryAddressLine2" VARCHAR(16777216),
	"DeliveryCityID" NUMBER(38,0),
	"DeliveryPostalCode" NUMBER(38,0),
	"DeliveryLocation" VARCHAR(16777216),
	"PostalAddressLine1" VARCHAR(16777216),
	"PostalAddressLine2" VARCHAR(16777216),
	"PostalCityID" NUMBER(38,0),
	"PostalPostalCode" NUMBER(38,0),
	"ApplicationSettings" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" VARCHAR(16777216)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."APPLICATION_SYSTEMPARAMETERS" (DeliveryPostalCode, DeliveryCityID, PostalAddressLine2, PostalAddressLine1, PostalCityID, DeliveryAddressLine2, PostalPostalCode, DeliveryLocation, SystemParameterID, ApplicationSettings, DeliveryAddressLine1, LastEditedBy, LastEditedWhen) VALUES ;
-- DBMS: snowflake
create or replace TABLE WAREHOUSE_STOCKITEMTRANSACTIONS (
	"StockItemTransactionID" NUMBER(38,0),
	"StockItemID" NUMBER(38,0),
	"TransactionTypeID" NUMBER(38,0),
	"CustomerID" FLOAT,
	"InvoiceID" FLOAT,
	"SupplierID" FLOAT,
	"PurchaseOrderID" FLOAT,
	"TransactionOccurredWhen" VARCHAR(16777216),
	"Quantity" FLOAT,
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" VARCHAR(16777216)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."WAREHOUSE_STOCKITEMTRANSACTIONS" (InvoiceID, CustomerID, TransactionTypeID, StockItemTransactionID, StockItemID, LastEditedBy, TransactionOccurredWhen, PurchaseOrderID, SupplierID, LastEditedWhen, Quantity) VALUES (129.0, 122.0, 10, 630, 118, 2, '2013-01-03 12:00:00.0000000', NULL, NULL, '2013-01-03 12:00:00.0000000', -10.0), (131.0, 543.0, 10, 635, 105, 2, '2013-01-03 12:00:00.0000000', NULL, NULL, '2013-01-03 12:00:00.0000000', -10.0), (154.0, 84.0, 10, 690, 137, 2, '2013-01-03 12:00:00.0000000', NULL, NULL, '2013-01-03 12:00:00.0000000', -10.0), (162.0, 563.0, 10, 719, 173, 2, '2013-01-03 12:00:00.0000000', NULL, NULL, '2013-01-03 12:00:00.0000000', -10.0), (170.0, 36.0, 10, 755, 173, 2, '2013-01-03 12:00:00.0000000', NULL, NULL, '2013-01-03 12:00:00.0000000', -10.0);
-- DBMS: snowflake
create or replace TABLE SALES_ORDERS (
	"OrderID" NUMBER(38,0),
	"CustomerID" NUMBER(38,0),
	"SalespersonPersonID" NUMBER(38,0),
	"PickedByPersonID" VARCHAR(16777216),
	"ContactPersonID" NUMBER(38,0),
	"BackorderOrderID" VARCHAR(16777216),
	"OrderDate" DATE,
	"ExpectedDeliveryDate" DATE,
	"CustomerPurchaseOrderNumber" NUMBER(38,0),
	"IsUndersupplyBackordered" NUMBER(38,0),
	"Comments" VARCHAR(16777216),
	"DeliveryInstructions" VARCHAR(16777216),
	"InternalComments" VARCHAR(16777216),
	"PickingCompletedWhen" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."SALES_ORDERS" (OrderID, ExpectedDeliveryDate, SalespersonPersonID, CustomerPurchaseOrderNumber, CustomerID, Comments, LastEditedWhen, PickingCompletedWhen, PickedByPersonID, LastEditedBy, DeliveryInstructions, InternalComments, IsUndersupplyBackordered, ContactPersonID, BackorderOrderID, OrderDate) VALUES (70080, '2016-04-11', 13, 15124, 89, 'NULL', 1460196000000000, 'NULL', 'NULL', 1, 'NULL', 'NULL', 1, 1177, 'NULL', '2016-04-09'), (56719, '2015-09-09', 6, 10585, 564, 'NULL', 1441882800000000, '2015-09-10 11:00:00.0000000', '2', 2, 'NULL', 'NULL', 1, 2327, 'NULL', '2015-09-08'), (56807, '2015-09-11', 3, 18624, 913, 'NULL', 1441882800000000, '2015-09-10 11:00:00.0000000', '2', 2, 'NULL', 'NULL', 1, 3113, 'NULL', '2015-09-10'), (56808, '2015-09-11', 13, 11975, 440, 'NULL', 1441882800000000, '2015-09-10 11:00:00.0000000', '2', 2, 'NULL', 'NULL', 1, 2079, 'NULL', '2015-09-10'), (56810, '2015-09-11', 15, 14004, 1042, 'NULL', 1441882800000000, '2015-09-10 11:00:00.0000000', '2', 2, 'NULL', 'NULL', 1, 3242, 'NULL', '2015-09-10');
-- DBMS: snowflake
create or replace TABLE PURCHASING_SUPPLIERCATEGORIES (
	"SupplierCategoryID" NUMBER(38,0),
	"SupplierCategoryName" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"ValidFrom" NUMBER(38,0),
	"ValidTo" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."PURCHASING_SUPPLIERCATEGORIES" (SupplierCategoryName, ValidTo, SupplierCategoryID, ValidFrom, LastEditedBy) VALUES ('Novelty Goods Supplier', 253402300799999999, 2, 1356998400000000, 1), ('Toy Supplier', 253402300799999999, 3, 1356998400000000, 1), ('Clothing Supplier', 253402300799999999, 4, 1356998400000000, 1);
-- DBMS: snowflake
create or replace TABLE SALES_ORDERLINES (
	"OrderLineID" NUMBER(38,0),
	"OrderID" NUMBER(38,0),
	"StockItemID" NUMBER(38,0),
	"Description" VARCHAR(16777216),
	"PackageTypeID" NUMBER(38,0),
	"Quantity" NUMBER(38,0),
	"UnitPrice" FLOAT,
	"TaxRate" FLOAT,
	"PickedQuantity" NUMBER(38,0),
	"PickingCompletedWhen" VARCHAR(16777216),
	"LastEditedBy" NUMBER(38,0),
	"LastEditedWhen" NUMBER(38,0)
);

INSERT INTO "WIDE_WORLD_IMPORTERS"."WIDE_WORLD_IMPORTERS"."SALES_ORDERLINES" (StockItemID, PickedQuantity, PackageTypeID, PickingCompletedWhen, LastEditedWhen, OrderLineID, UnitPrice, OrderID, Description, Quantity, TaxRate, LastEditedBy) VALUES (1, 1, 7, '2013-02-21 11:00:00.0000000', 1361444400000000, 8107, 25.0, 2538, 'USB missile launcher (Green)', 1, 15.0, 17), (1, 1, 7, '2013-02-21 11:00:00.0000000', 1361444400000000, 8149, 25.0, 2549, 'USB missile launcher (Green)', 1, 15.0, 17), (1, 1, 7, '2013-03-07 11:00:00.0000000', 1362654000000000, 10302, 25.0, 3208, 'USB missile launcher (Green)', 1, 15.0, 18), (1, 1, 7, '2013-03-12 11:00:00.0000000', 1363086000000000, 11173, 25.0, 3479, 'USB missile launcher (Green)', 1, 15.0, 5), (1, 1, 7, '2013-04-18 11:00:00.0000000', 1366282800000000, 17555, 25.0, 5507, 'USB missile launcher (Green)', 1, 15.0, 17);
-- DBMS: snowflake
create or replace TABLE IMAGING_LEVEL4_HTAPP_MERFISH_CURRENT (
	"iObs" NUMBER(38,0),
	"iVar" NUMBER(38,0),
	"X_value" FLOAT,
	"featureID" VARCHAR(16777216),
	"index" VARCHAR(16777216),
	"Source_filename" VARCHAR(16777216),
	"Source_entityId" VARCHAR(16777216),
	"HTAN_Center" VARCHAR(16777216),
	"HTAN_Data_File_ID" VARCHAR(16777216),
	"HTAN_Biospecimen_ID" VARCHAR(16777216)
);

INSERT INTO "HTAN_2"."HTAN"."IMAGING_LEVEL4_HTAPP_MERFISH_CURRENT" (Source_entityId, HTAN_Data_File_ID, HTAN_Biospecimen_ID, HTAN_Center, iVar, index, featureID, iObs, X_value, Source_filename) VALUES ('syn25541290', 'HTA1_812_8239304999402', 'HTA1_812_8239304', 'HTAN HTAPP', 256, 'SOX4', '134594782163046708889968525197687289614', 494, 1.0, 'counts_HTAPP-812_slice4.h5ad'), ('syn25541290', 'HTA1_812_8239304999402', 'HTA1_812_8239304', 'HTAN HTAPP', 256, 'SOX4', '165405077511012407098978979213203460046', 1663, 1.0, 'counts_HTAPP-812_slice4.h5ad'), ('syn25541290', 'HTA1_812_8239304999402', 'HTA1_812_8239304', 'HTAN HTAPP', 256, 'SOX4', '263475004383084272954735486700496204358', 200, 1.0, 'counts_HTAPP-812_slice4.h5ad'), ('syn25541290', 'HTA1_812_8239304999402', 'HTA1_812_8239304', 'HTAN HTAPP', 256, 'SOX4', '236771251857349174383879233135303077420', 2924, 1.0, 'counts_HTAPP-812_slice4.h5ad'), ('syn25541290', 'HTA1_812_8239304999402', 'HTA1_812_8239304', 'HTAN HTAPP', 256, 'SOX4', '64306803672934562460465273721903663529', 1994, 3.0, 'counts_HTAPP-812_slice4.h5ad');
-- DBMS: snowflake
create or replace TABLE SCRNASEQ_VUMC_HTAN_VAL_EPI_V2_CURRENT (
	"iObs" NUMBER(38,0),
	"iVar" NUMBER(38,0),
	"X_value" FLOAT,
	"Cell_Barcode_Number" VARCHAR(16777216),
	"HTAN_Parent_Data_File_ID" VARCHAR(16777216),
	"HTAN_Biospecimen_ID" VARCHAR(16777216),
	"Cell_Type" VARCHAR(16777216),
	"Tissue_Subtype" VARCHAR(16777216),
	"Tissue_Type" VARCHAR(16777216),
	"Gene_Name" VARCHAR(16777216)
);

INSERT INTO "HTAN_2"."HTAN"."SCRNASEQ_VUMC_HTAN_VAL_EPI_V2_CURRENT" (HTAN_Parent_Data_File_ID, Gene_Name, X_value, HTAN_Biospecimen_ID, Cell_Barcode_Number, iVar, Tissue_Subtype, Cell_Type, Tissue_Type, iObs) VALUES ('HTA11_866_300476101113111', 'USP33', 1.0, 'HTA11_866_3004761011', 'GATGTACACGATGCATGG-21-5607', 30001, 'TA', 'GOB', 'AD', 13568), ('HTA11_866_300476101113111', 'ARHGAP8', 2.0, 'HTA11_866_3004761011', 'TGAAGGATTCAACTCACCG-21-5607', 2522, 'TA', 'ASC', 'AD', 13824), ('HTA11_866_300476101113111', 'COL4A2', 1.0, 'HTA11_866_3004761011', 'TGAAGGATTCAACTCACCG-21-5607', 5235, 'TA', 'ASC', 'AD', 13824), ('HTA11_866_300476101113111', 'MT-TC', 1.0, 'HTA11_866_3004761011', 'TGAAGGATTCAACTCACCG-21-5607', 14521, 'TA', 'ASC', 'AD', 13824), ('HTA11_866_300476101113111', 'GPCPD1', 1.0, 'HTA11_866_3004761011', 'GAGAGCCCATTGGGATTC-21-5607', 9699, 'TA', 'GOB', 'AD', 13569);
-- DBMS: snowflake
create or replace TABLE IMAGING_LEVEL1_METADATA_CURRENT (
	PRE_PROCESSING_COMPLETED VARCHAR(16777216),
	HTAN_PARENT_BIOSPECIMEN_ID VARCHAR(16777216),
	COMMIT_SHA VARCHAR(16777216),
	PRE_PROCESSING_REQUIRED VARCHAR(16777216),
	FILENAME VARCHAR(16777216),
	COMMENT VARCHAR(16777216),
	ENTITYID VARCHAR(16777216),
	ID VARCHAR(16777216),
	HTAN_DATA_FILE_ID VARCHAR(16777216),
	COMPONENT VARCHAR(16777216),
	IMAGING_ASSAY_TYPE VARCHAR(16777216),
	SOFTWARE_AND_VERSION VARCHAR(16777216),
	FILE_FORMAT VARCHAR(16777216),
	PROTOCOL_LINK VARCHAR(16777216),
	HTAN_CENTER VARCHAR(16777216),
	MANIFEST_ID VARCHAR(16777216),
	MANIFEST_VERSION NUMBER(38,0),
	FILE_SIZE NUMBER(38,0),
	MD5 VARCHAR(16777216),
	DATA_RELEASE VARCHAR(16777216),
	CDS_RELEASE VARCHAR(16777216)
);

INSERT INTO "HTAN_2"."HTAN"."IMAGING_LEVEL1_METADATA_CURRENT" (PROTOCOL_LINK, HTAN_CENTER, IMAGING_ASSAY_TYPE, COMMIT_SHA, HTAN_DATA_FILE_ID, COMPONENT, HTAN_PARENT_BIOSPECIMEN_ID, SOFTWARE_AND_VERSION, DATA_RELEASE, COMMENT, ID, ENTITYID, FILENAME, MD5, MANIFEST_VERSION, FILE_SIZE, MANIFEST_ID, PRE_PROCESSING_COMPLETED, CDS_RELEASE, PRE_PROCESSING_REQUIRED, FILE_FORMAT) VALUES ('https://dx.doi.org/10.17504/protocols.io.4jngume', 'HTAN Stanford', 'CODEX', NULL, 'HTA10_07_401011001', 'ImagingLevel1', 'HTA10_07_401', 'Akoya CIM 1.7.0.6', 'Release 5.0', NULL, '9d912d86-4a02-4503-820a-65d5e4dac17d', 'syn53254448', 'codex_level_1/B001-A-401.zip', 'f66aa90f1ea079940e2ee0c7d153030b', 2, 50328266509, 'syn53335738', NULL, NULL, 'Tile Stitching', 'zip'), ('https://dx.doi.org/10.17504/protocols.io.4jngume', 'HTAN Stanford', 'CODEX', NULL, 'HTA10_01_119011001', 'ImagingLevel1', 'HTA10_01_119', 'Akoya CIM 1.7.0.6', 'Release 5.0', NULL, '718d887b-1ddf-40a8-a82e-8944125285b7', 'syn53254467', 'codex_level_1/A001-C-119.zip', '6cc4c7906dae40e5ad9987657e77894f', 2, 172118743323, 'syn53335738', NULL, NULL, 'Tile Stitching', 'zip'), ('https://dx.doi.org/10.17504/protocols.io.4jngume', 'HTAN Stanford', 'CODEX', NULL, 'HTA10_02_024011001', 'ImagingLevel1', 'HTA10_02_024', 'Akoya CIM 1.7.0.6', 'Release 5.0', NULL, '8e0379cd-3429-4326-959e-a1a64f2f0576', 'syn53254443', 'codex_level_1/A002-C-024.zip', '253f9fdb0256e62487e67d8e78efaba1', 2, 180618434363, 'syn53335738', NULL, NULL, 'Tile Stitching', 'zip'), ('https://dx.doi.org/10.17504/protocols.io.4jngume', 'HTAN Stanford', 'CODEX', NULL, 'HTA10_01_002011001', 'ImagingLevel1', 'HTA10_01_002', 'Akoya CIM 1.7.0.6', 'Release 5.0', NULL, 'eb7edbed-6048-408f-beb9-8af4c4fadfbc', 'syn53254437', 'codex_level_1/A001-C-002.zip', 'd8772c096ab1624fb936ab8a2e50a816', 2, 187418187195, 'syn53335738', NULL, NULL, 'Tile Stitching', 'zip'), ('https://dx.doi.org/10.17504/protocols.io.4jngume', 'HTAN Stanford', 'CODEX', NULL, 'HTA10_01_023011001', 'ImagingLevel1', 'HTA10_01_023', 'Akoya CIM 1.7.0.6', 'Release 5.0', NULL, 'f3accf47-22e3-417d-bf83-528b628c65f4', 'syn53254450', 'codex_level_1/A001-C-023.zip', '2962ffb2a6060c9f042b8ce759907bb0', 2, 50417010144, 'syn53335738', NULL, NULL, 'Tile Stitching', 'zip');
-- DBMS: snowflake
create or replace TABLE CLINICAL_TIER1_FAMILYHISTORY_CURRENT (
	"Relative_with_Cancer_History" VARCHAR(16777216),
	"Relationship_Type" VARCHAR(16777216),
	"Relationship_Primary_Diagnosis" VARCHAR(16777216),
	"Relationship_Age_at_Diagnosis" VARCHAR(16777216),
	"entityId" VARCHAR(16777216),
	"Id" VARCHAR(16777216),
	"Relationship_Gender" VARCHAR(16777216),
	"Component" VARCHAR(16777216),
	"Relatives_with_Cancer_History_Count" VARCHAR(16777216),
	"HTAN_Participant_ID" VARCHAR(16777216),
	"HTAN_Center" VARCHAR(16777216),
	"Manifest_Id" VARCHAR(16777216),
	"Manifest_Version" NUMBER(38,0)
);

INSERT INTO "HTAN_2"."HTAN"."CLINICAL_TIER1_FAMILYHISTORY_CURRENT" (Relationship_Primary_Diagnosis, HTAN_Participant_ID, Relationship_Type, Component, Relationship_Age_at_Diagnosis, entityId, Id, Relative_with_Cancer_History, Manifest_Id, Relationship_Gender, Relatives_with_Cancer_History_Count, Manifest_Version, HTAN_Center) VALUES (NULL, 'HTA4_2', NULL, 'FamilyHistory', NULL, 'syn25539039', '83905a11-53e3-4de1-9e90-70001bd32924', NULL, 'syn39247103', NULL, NULL, 2, 'HTAN CHOP'), (NULL, 'HTA4_3', NULL, 'FamilyHistory', NULL, 'syn25539021', '5b60ab79-68a2-4b31-8ea2-0f373c4e90cf', NULL, 'syn39247103', NULL, NULL, 2, 'HTAN CHOP'), (NULL, 'HTA4_7', NULL, 'FamilyHistory', NULL, 'syn25539024', '980d9710-47c6-454c-acc9-f9ac8e8cfa4b', NULL, 'syn39247103', NULL, NULL, 2, 'HTAN CHOP'), (NULL, 'HTA4_9', NULL, 'FamilyHistory', NULL, 'syn25539035', '1080b712-8ad6-421c-acca-466c3501d41e', NULL, 'syn39247103', NULL, NULL, 2, 'HTAN CHOP'), (NULL, 'HTA6_1', NULL, 'FamilyHistory', NULL, 'syn25050065', 'bd86b9bd-6436-45f3-946f-c40326605642', 'unknown', 'syn39265227', NULL, NULL, 3, 'HTAN Duke');