-- DBMS: snowflake
CREATE TABLE WEATHER__ENVIRONMENT.CYBERSYN.FEMA_NATIONAL_FLOOD_INSURANCE_PROGRAM_POLICY_INDEX (
    LATITUDE FLOAT,
    LONGITUDE FLOAT,
    ORIGINAL_FLOOD_POLICY_DATE DATE,
    POLICY_RATED_FLOOD_ZONE TEXT,
    ELEVATION_DIFFERENCE NUMBER,
    SUBSIDIZATION_TYPE TEXT,
    PROBATION_SURCHARGE NUMBER,
    PROPERTY_PURCHASE_DATE DATE,
    TOTAL_INSURANCE_PREMIUM_OF_THE_POLICY NUMBER,
    STATE_GEO_ID TEXT,
    BASEMENT_ENCLOSURE_CRAWLSPACE TEXT,
    ICC_PREMIUM NUMBER,
    NFIP_RATED_COMMUNITY_NUMBER TEXT,
    CONTENTS_DEDUCTIBLE NUMBER,
    ADDITIONAL_CONTENTS_RATE FLOAT,
    LOWEST_ADJACENT_GRADE FLOAT,
    GRANDFATHERING TEXT,
    HFIAA_SURCHARGE NUMBER,
    CITY TEXT,
    ROLLOVER_TRANSFER TEXT,
    POLICY_EFFECTIVE_DATE DATE,
    BUILDING_DEDUCTIBLE NUMBER,
    TOTAL_BUILDING_INSURANCE_COVERAGE NUMBER,
    POLICY_TERMINATION_DATE DATE,
    POLICY_CANCELLATION_REASON TEXT,
    MAP_PANEL_NUMBER TEXT,
    WAITING_PERIOD_TYPE TEXT,
    TOTAL_CONTENTS_INSURANCE_COVERAGE NUMBER,
    BASIC_CONTENTS_RATE FLOAT,
    RESERVE_FUND_ASSESSMENT NUMBER,
    FEMA_REGION_ID NUMBER,
    POLICY_CANCELLATION_DATE DATE,
    POLICY_RATING_METHOD TEXT,
    BASE_FLOOD_ELEVATION FLOAT,
    FEDERAL_POLICY_FEE NUMBER,
    OCCUPANCY_TYPE TEXT,
    POLICY_COUNT NUMBER,
    NATIONAL_FLOOD_INSURANCE_PROGRAM_POLICY_ID TEXT,
    ENDORSEMENT_EFFECTIVE_DATE DATE,
    CENSUS_TRACT_ID TEXT,
    NFIP_COMMUNITY_NUMBER_CURRENT TEXT,
    COUNTY_GEO_ID TEXT,
    CENSUS_BLOCK_GROUP_ID TEXT,
    POLICY_COST FLOAT,
    NUMBER_OF_FLOORS TEXT,
    PROPERTY_INDICATORS ARRAY,
    BUILDING_REPLACEMENT_COST NUMBER,
    BASIC_BUILDING_RATE FLOAT,
    ENCLOSURE TEXT,
    DISASTER_ASSISTANCE_COVERAGE_REQUIRED TEXT,
    INSURANCE_TO_VALUE_RATIO TEXT,
    COMMUNITY_RATING_SYSTEM_CLASS TEXT,
    BUILDING_TYPE TEXT,
    NFIP_COMMUNITY_NAME TEXT,
    CURRENT_FLOOD_ZONE TEXT,
    ZIP_GEO_ID TEXT,
    OBSTRUCTION TEXT,
    LOWEST_FLOOR_ELEVATION FLOAT,
    CONDOMINIUM_COVERAGE_TYPE TEXT,
    ADDITIONAL_BUILDING_RATE FLOAT,
    CONTENT_LOCATION TEXT,
    MAP_PANEL_SUFFIX TEXT,
    ORIGINAL_CONSTRUCTION_DATE DATE
);

INSERT INTO "WEATHER__ENVIRONMENT"."CYBERSYN"."FEMA_NATIONAL_FLOOD_INSURANCE_PROGRAM_POLICY_INDEX" (LATITUDE, LONGITUDE, ORIGINAL_FLOOD_POLICY_DATE, POLICY_RATED_FLOOD_ZONE, ELEVATION_DIFFERENCE, SUBSIDIZATION_TYPE, PROBATION_SURCHARGE, PROPERTY_PURCHASE_DATE, TOTAL_INSURANCE_PREMIUM_OF_THE_POLICY, STATE_GEO_ID, BASEMENT_ENCLOSURE_CRAWLSPACE, ICC_PREMIUM, NFIP_RATED_COMMUNITY_NUMBER, CONTENTS_DEDUCTIBLE, ADDITIONAL_CONTENTS_RATE, LOWEST_ADJACENT_GRADE, GRANDFATHERING, HFIAA_SURCHARGE, CITY, ROLLOVER_TRANSFER, POLICY_EFFECTIVE_DATE, BUILDING_DEDUCTIBLE, TOTAL_BUILDING_INSURANCE_COVERAGE, POLICY_TERMINATION_DATE, POLICY_CANCELLATION_REASON, MAP_PANEL_NUMBER, WAITING_PERIOD_TYPE, TOTAL_CONTENTS_INSURANCE_COVERAGE, BASIC_CONTENTS_RATE, RESERVE_FUND_ASSESSMENT, FEMA_REGION_ID, POLICY_CANCELLATION_DATE, POLICY_RATING_METHOD, BASE_FLOOD_ELEVATION, FEDERAL_POLICY_FEE, OCCUPANCY_TYPE, POLICY_COUNT, NATIONAL_FLOOD_INSURANCE_PROGRAM_POLICY_ID, ENDORSEMENT_EFFECTIVE_DATE, CENSUS_TRACT_ID, NFIP_COMMUNITY_NUMBER_CURRENT, COUNTY_GEO_ID, CENSUS_BLOCK_GROUP_ID, POLICY_COST, NUMBER_OF_FLOORS, PROPERTY_INDICATORS, BUILDING_REPLACEMENT_COST, BASIC_BUILDING_RATE, ENCLOSURE, DISASTER_ASSISTANCE_COVERAGE_REQUIRED, INSURANCE_TO_VALUE_RATIO, COMMUNITY_RATING_SYSTEM_CLASS, BUILDING_TYPE, NFIP_COMMUNITY_NAME, CURRENT_FLOOD_ZONE, ZIP_GEO_ID, OBSTRUCTION, LOWEST_FLOOR_ELEVATION, CONDOMINIUM_COVERAGE_TYPE, ADDITIONAL_BUILDING_RATE, CONTENT_LOCATION, MAP_PANEL_SUFFIX, ORIGINAL_CONSTRUCTION_DATE) VALUES (29.8, -95.7, '2015-09-06', 'Minimal/Moderate Flood from Primary Water Source', nan, 'Not subsidized', 0.0, NULL, 348, 'geoId/48', 'None', 4, '480287', 1250.0, 0.0, nan, 'No Grandfathering', 25, NULL, NULL, '2018-09-06', 1250, 250000, '2019-09-06', NULL, '0615', 'No waiting period', 100000, 0.0, 52, 6, NULL, 'Preferred Risk Policy (within a non-SFHA)', nan, 25, 'Single family residence', 1, 'c3ade445-7e4b-4e1a-8b57-94f54a173b77', '2018-09-08', 'geoId/48201454800', '480287', 'geoId/48201', NULL, 450.0, '1 Floor', '[
  "1 year term",
  "Post-FIRM Construction",
  "Primary Residence of the Insured",
  "NFIP Regular Program"
]', 196640, 0.0, 'None', 'Not Required', '.75 or more', 'SFHA 15%, Non SFHA 5%', 'Main House', 'Harris County', 'Minimal/Moderate Flood from Primary Water Source', 'zip/77450', NULL, nan, 'Not a Condominium', 0.0, 'Lowest floor only above ground level (No Basement/Enclosure/Crawlspace/Subgrade Crawlspace)', 'M', '1978-01-25'), (30.0, -90.1, '2013-12-06', 'Special Flood with Base Flood Elevation on FIRM (3)', 2.0, 'Not subsidized', 0.0, '2013-12-02', 288, 'geoId/22', NULL, 6, '225203', nan, 0.12, 0.4, 'Grandfathering Continuous Coverage', 250, NULL, 'New Issue', '2018-12-06', 1250, 166400, '2019-12-06', NULL, '0095', 'No waiting period', 0, 0.38, 43, 6, NULL, 'Pre-FIRM Policies with Elevation Rating - Flood Insurance Manual rate tables', 1.5, 50, 'Single family residence', 1, '21f7e795-07da-47f5-bddd-0c6003b2e407', '2018-12-06', 'geoId/22071004000', '225203', 'geoId/22071', NULL, 631.0, '2 Floors', '[
  "1 year term",
  "Elevated Building",
  "NFIP Regular Program",
  "Rental Property"
]', 183000, 0.39, NULL, 'Not Required', NULL, 'SFHA 10%, Non SFHA 5%', 'Main House', 'New Orleans/Orleans Parish', 'Minimal/Moderate Flood from Primary Water Source', 'zip/70119', 'Without obstruction (elevation of machinery/equipment is at or above Base Flood Elevation', 3.2, 'Not a Condominium', 0.08, NULL, 'E', '1900-01-01'), (42.3, -89.1, '2006-11-10', 'Special Flood with Base Flood Elevation on FIRM', nan, NULL, 0.0, '2006-11-10', 648, 'geoId/17', 'Unfinished Basement/Enclosure', 70, '170723', nan, 0.0, nan, 'No Grandfathering', 0, NULL, 'New Issue', '2010-11-10', 2000, 70500, '2011-11-10', NULL, '0264', NULL, 0, 0.0, 0, 5, NULL, 'Manual', nan, 40, 'Single family residence', 1, 'd8cee45a-c105-4f4f-a951-f37d82060ecb', '2010-11-10', 'geoId/17201001400', '170723', 'geoId/17201', NULL, 688.0, '1 Floor', '[
  "1 year term",
  "Mandatory Purchase",
  "NFIP Regular Program"
]', 106000, 0.81, NULL, NULL, NULL, NULL, 'Main House', 'City Of Rockford', 'Special Flood with Base Flood Elevation on FIRM', 'zip/61104', NULL, nan, 'Not a Condominium', 0.88, NULL, 'E', '1935-01-01'), (35.3, -75.5, '1999-07-29', 'Special Flood with Base Flood Elevation on FIRM', 4.0, NULL, 0.0, '1999-07-29', 334, 'geoId/37', NULL, 4, '375348', 1000.0, 0.12, 6.7, 'No Grandfathering', 0, NULL, 'New Issue', '2013-07-29', 1000, 250000, '2014-07-29', NULL, '0527', NULL, 18700, 0.38, 0, 4, NULL, 'Manual', 8.0, 40, 'Single family residence', 1, 'b1a8a21d-f052-4e4b-afcb-b1f41958eabb', '2013-07-29', 'geoId/37055970502', '375348', 'geoId/37055', NULL, 374.0, '2 Floors', '[
  "1 year term",
  "Elevated Building",
  "Post-FIRM Construction",
  "Primary Residence of the Insured",
  "NFIP Regular Program"
]', 300000, 0.24, NULL, 'Not Required', '.75 or more', 'SFHA 10%, Non SFHA 5%', 'Main House', 'Dare County', 'Special Flood with Base Flood Elevation on FIRM', 'zip/27920', 'Without obstruction (elevation of machinery/equipment is at or above Base Flood Elevation', 11.9, 'Not a Condominium', 0.08, 'Lowest floor above ground level and higher floors (No Basement/Enclosure/Crawlspace/Subgrade Crawlspace)', 'J', '1999-01-01'), (39.0, -121.5, '2010-04-20', 'Minimal/Moderate Flood from Primary Water Source', nan, NULL, nan, NULL, 523, 'geoId/06', 'None', 31, '060427', 1000.0, nan, nan, 'No Grandfathering', 25, NULL, 'Rollover/Renewal', '2022-04-20', 1250, 250000, '2023-04-20', NULL, '0485', 'No waiting period', 100000, nan, 94, 9, NULL, 'Risk Rated Policies (FEMA calculated based on risk factors)', nan, 47, 'Single-family Residential Building', 1, '025ef159-e955-4662-91de-b7117c1c2afd', '2022-04-20', 'geoId/06115040700', '060427', 'geoId/06115', NULL, 689.0, '1 Floor', '[
  "1 year term",
  "Post-FIRM Construction",
  "Premium Payment: Cash or check",
  "Primary Residence of the Insured",
  "NFIP Regular Program"
]', 366465, nan, NULL, NULL, NULL, 'SFHA 15%, Non SFHA 5%', 'Main House', 'Yuba County', 'Minimal/Moderate Flood from Primary Water Source', 'zip/95961', NULL, nan, 'Not a Condominium', nan, 'Lowest floor only above ground level (No Basement/Enclosure/Crawlspace/Subgrade Crawlspace)', 'D', '2004-09-01');