-- DBMS: snowflake
CREATE TABLE GLOBAL_GOVERNMENT.CYBERSYN.CYBERSYN_DATA_CATALOG (
    DATA_SOURCE ARRAY,
    LICENSE_URL ARRAY,
    CREATED_DATE DATE,
    TABLE_NAME_PROPER TEXT,
    LISTING_NAME ARRAY,
    LAST_UPDATED_TIMESTAMP TIMESTAMP_TZ,
    DESCRIPTION TEXT,
    TABLE_TYPE TEXT,
    SELECT_RELATED_TABLES ARRAY,
    DOCUMENTATION_URL TEXT,
    SHORT_DESCRIPTION TEXT,
    DATA_SOURCE_URL ARRAY,
    ENTITIES ARRAY,
    LISTING_URL ARRAY,
    TABLE_NAME TEXT
);

INSERT INTO "GLOBAL_GOVERNMENT"."CYBERSYN"."CYBERSYN_DATA_CATALOG" (DATA_SOURCE, LICENSE_URL, CREATED_DATE, TABLE_NAME_PROPER, LISTING_NAME, LAST_UPDATED_TIMESTAMP, DESCRIPTION, TABLE_TYPE, SELECT_RELATED_TABLES, DOCUMENTATION_URL, SHORT_DESCRIPTION, DATA_SOURCE_URL, ENTITIES, LISTING_URL, TABLE_NAME) VALUES ('[
  "Bank for International Settlements (BIS)"
]', '[
  "https://www.bis.org/terms_statistics.htm"
]', '2023-11-22', 'BIS International Financial Statistics Timeseries', '[
  "Finance & Economics",
  "Financials & Economics: Enterprise "
]', '2024-08-29 09:01:51.769000+00:00', 'Country-level statistics on real estate market trends, monetary policy rates, banking activities, credit availability to the non-financial sector, liquidity conditions, and inflation, provided by the central bank for central banks, Bank for International Settlements (BIS).

The Bank for International Settlements (BIS) is an international financial organization that provides data series on Property Prices (real estate market trends), Central Bank Policy Rates (global monetary policy), Locational and Consolidated Banking Statistics (international banking activities and risks), Credit to the Non-Financial Sector (credit availability), Global Liquidity Indicators, and Consumer Prices (inflationary activity).

Each row represents a distinct timeseries, date, and value by primary and counterparty geographic entities (if available). Each variable is detailed in the bank_for_international_settlements_attributes table.', 'timeseries', '[
  "bank_for_international_settlements_attributes",
  "geography_index"
]', 'https://docs.cybersyn.com/public-domain-sources/bank-for-international-settlements', 'Country-level real estate market trends, monetary policy rates, banking activities, credit availability to the non-financial sector, liquidity conditions, and inflation, provided by the central bank for central banks, Bank for International Settlements (BIS).', '[
  "https://www.bis.org/statistics/index.htm?m=205"
]', '[
  "geo_id"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KF7",
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'bank_for_international_settlements_timeseries'), ('[
  "Bureau of Labor Statistics (BLS)"
]', '[
  "https://www.bls.gov/bls/linksite.htm"
]', '2023-06-13', 'BLS Employment Statistics Timeseries', '[
  "Finance & Economics",
  "Financials & Economics: Enterprise "
]', '2024-08-28 15:28:48.567000+00:00', 'Employment, job openings, labor turnover, and wages tracked across US regions in the LAUS, JOLTS, and SAE reports from the BLS.

The US Bureau of Labor Statistics (BLS) produces granular employment reports: Local Area Unemployment Statistics (LAUS) provides monthly and annual employment, unemployment, and labor force data for states and localities; Job Openings and Labor Turnover Survey (JOLTS) covers labor demand and turnover rates, including data on job openings, hires, and separations; and State and Metro Employment (SAE) delivers employment and wage data across various industries at state and metropolitan levels.

Each row represents a distinct timeseries collected by the BLS reports (LAUS, JOLTS, and SAE), date, and value by geographic entity JOINABLE to Cybersyn''s geography entity tables. Each variable is detailed in the bureau_of_labor_statistics_employment_attributes table.', 'timeseries', '[
  "bureau_of_labor_statistics_employment_attributes",
  "geography_index"
]', 'https://docs.cybersyn.com/public-domain-sources/us-bureau-of-labor-statistics', 'Employment, job openings, labor turnover, and wages tracked across US regions in the LAUS, JOLTS, and SAE reports from the BLS.', '[
  "https://www.bls.gov/"
]', '[
  "geo_id"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KF7",
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'bureau_of_labor_statistics_employment_timeseries'), ('[
  "Cybersyn"
]', NULL, '2024-06-24', 'Company Event Transcript Attributes', '[
  "Financials & Economics: Enterprise "
]', '2024-08-31 00:11:15.396000+00:00', 'Transcripts of hosted company events (e.g. Update / Briefing, Earnings Call, Annual General Meeting) in JSON format.

The Cybersyn Company Event Transcript Attribute table include JSON-formatted transcripts of hosted company events across 9000+ public companies. The amount of history per company varies and more history is being added on a daily basis.

Company events may include Earnings Calls, Update / Briefings, M&A Announcements, Annual General Meetings, Investor / Analyst Days, and more. ', 'attributes', '[
  "company_index",
  "sec_cik_index",
  "sec_corporate_report_index",
  "sec_corporate_report_attributes"
]', 'https://docs.cybersyn.com/public-domain-sources/earnings-transcripts', 'Transcripts of hosted company events (e.g. Update / Briefing, Earnings Call, Annual General Meeting) in JSON format.', NULL, '[
  "company_id",
  "cik",
  "primary_ticker"
]', '[
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'company_event_transcript_attributes'), ('[
  "Cybersyn"
]', NULL, '2023-11-01', 'Cybersyn Data Catalog', '[
  "Consumer Spending Essentials",
  "Global Government",
  "Canadian Government",
  "Finance & Economics",
  "SEC Filings",
  "US Real Estate",
  "GitHub Events",
  "US Addresses & POI",
  "Tech & Innovation",
  "Weather & Environment",
  "US Crime",
  "US Healthcare & Insurance",
  "US Patents",
  "LLM Training",
  "Financials & Economics: Enterprise "
]', '2024-08-30 22:09:41.613000+00:00', 'A catalog of all Cybersyn tables. Metadata about the tables includes descriptions, data sources, related tables, and more.', 'other', NULL, NULL, NULL, NULL, NULL, '[
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX3R",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KGK",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KFB",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KF7",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KH9",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KI6",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KJ3",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KIA",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KII",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KIM",
  "https://app.snowflake.com/marketplace/listing/GZTSZAS2KIE",
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX3V",
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX19",
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX1X",
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'cybersyn_data_catalog'), ('[
  "Bureau of Economic Analysis (BEA)",
  "Bureau of Labor Statistics (BLS)",
  "Census Bureau (CB)",
  "Consumer Financial Protection Bureau (CFPB)",
  "Department of Labor (DOL)",
  "Federal Reserve (FED)",
  "Freddie Mac",
  "New York Fed"
]', '[
  "https://www.bea.gov/about/policies-and-information",
  "https://www.bls.gov/bls/linksite.htm",
  "https://www.census.gov/data/developers/about/terms-of-service.html",
  "https://www.consumerfinance.gov/privacy/",
  "https://www.dol.gov/general/aboutdol/copyright",
  "https://www.federalreserve.gov/disclaimer.htm",
  "https://www.freddiemac.com/pmms/syndication/how_to",
  "https://www.newyorkfed.org/privacy/termsofuse"
]', '2024-03-12', 'Cybersyn Financial & Economic Indicators Timeseries Point in Time History', '[
  "Financials & Economics: Enterprise "
]', '2024-08-30 21:16:59.968000+00:00', 'Tracks history of the cybersyn_financial_economic_indicators_timeseries table with start and end timestamps to indicate row validity periods. 

Current rows have a NULL end timestamp. Updated and deleted rows are time-stamped, including deletion time, in Eastern Time with UTC offset.', 'point-in-time history', '[
  "cybersyn_financial_economic_indicators_timeseries"
]', 'https://docs.cybersyn.com/public-domain-sources/financial-and-economic-indicators', NULL, '[
  "https://www.bea.gov/data/gdp",
  "https://www.bls.gov/",
  "https://www.census.gov/data/datasets.html",
  "https://www.consumerfinance.gov/",
  "https://oui.doleta.gov/unemploy/claims.asp",
  "https://www.federalreserve.gov/data.htm",
  "https://www.freddiemac.com/pmms/pmms_archives",
  "https://www.freddiemac.com/research/indices/house-price-index",
  "https://www.newyorkfed.org/microeconomics/databank.html"
]', NULL, '[
  "https://app.snowflake.com/marketplace/listing/GZTSZ290BUX66"
]', 'cybersyn_financial_economic_indicators_timeseries_history');