-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.noaa_significant_earthquakes.earthquakes`
(
  id INT64 OPTIONS(description=""),
  flag_tsunami STRING OPTIONS(description="If a tsunami was recorded."),
  year INT64 OPTIONS(description="Century and year of the significant earthquake. Format +/-yyyy (-is B.C, +is A.D.). Valid values: -2000 to present. The Date and Time are given in Universal Coordinated Time."),
  month INT64 OPTIONS(description="Month of the significant earthquake. Valid values: 1-12. The Date and Time are given in Universal Coordinated Time. The local date may be one day different."),
  day INT64 OPTIONS(description="Day of the significant earthquake. Valid values: 1-31 (where months apply). The Date and Time are given in Universal Coordinated Time. The local date may be one day different."),
  hour INT64 OPTIONS(description="Hour of the significant earthquake. Valid values: 0-23. The Date and Time are given in Universal Coordinated Time. The local date may be one day different."),
  minute INT64 OPTIONS(description="Minute of the significant earthquake. Valid values: 0-59. The Date and Time are given in Universal Coordinated Time. The local date may be one day different."),
  second FLOAT64 OPTIONS(description="Second of the significant earthquake. Valid values: 0-59. The Date and Time are given in Universal Coordinated Time. The local date may be one day different."),
  focal_depth INT64 OPTIONS(description="The depth of the earthquake is given in kilometers. Valid values 0 to 700 km."),
  eq_primary FLOAT64 OPTIONS(description="The primary earthquake magnitude is chosen from the available magnitude scales in this order: Mw Magnitude  Ms Magnitude  Mb Magnitude  Ml Magnitude  Mfa Magnitude  Unknown Magnitude"),
  eq_mag_mw FLOAT64 OPTIONS(description="Earthquake magnitude Mw. Valid values 0 to 9.9 The Mw magnitude is based on the moment magnitude scale"),
  eq_mag_ms FLOAT64 OPTIONS(description="Earthquake magnitude MS. Valid values 0 to 9.9 The Ms magnitude is the surface-wave magnitude of the earthquake."),
  eq_mag_mb FLOAT64 OPTIONS(description="Earthquake magnitude mb. Valid values 0 to 9.9 The Mb magnitude is the compressional body wave (P-wave) magnitude."),
  eq_mag_ml FLOAT64 OPTIONS(description="Earthquake magnitude ML. Valid values 0 to 9.9 The ML magnitude was the original magnitude relationship defined by Richter and Gutenberg for local earthquakes in 1935."),
  eq_mag_mfa FLOAT64 OPTIONS(description="Earthquake magnitude Mfa (based on felt area). Valid values 0 to 9.9 The Mfa magnitudes are computed from the felt area, for earthquakes that occurred before seismic instruments were in general use."),
  eq_mag_unk FLOAT64 OPTIONS(description="Earthquake magnitude type is Unknown. Valid values 0 to 9.9 The computational method for the earthquake magnitude was unknown and could not be determined from the published sources."),
  intensity INT64 OPTIONS(description="The effect of an earthquake on the Earth's surface is called the intensity. The Modified Mercalli Intensity (MMI) is given in Roman Numerals (converted to numbers in the digital database)"),
  country STRING OPTIONS(description="Country. The name of the country where earthquake was located."),
  state STRING OPTIONS(description="The State, Province or Prefecture of the earthquake was located."),
  location_name STRING OPTIONS(description="Earthquake Location Name. The location (city, state or island) where the earthquake was located."),
  latitude FLOAT64 OPTIONS(description="Latitude: Valid values: -90 to +90 Latitude: 0 to 90 (Northern Hemisphere), -90 to 0 (Southern Hemisphere). The latitude of the location (city, state or island) where the earthquake was located."),
  longitude FLOAT64 OPTIONS(description="Longitude. Valid values: -180 to +180 Longitude: 0 to 180 (Eastern Hemisphere), -180 to 0 (Western Hemisphere). The longitude of the location (city, state or island) where the earthquake was located."),
  region_code INT64 OPTIONS(description="Region Name (Code). Regional boundaries were assigned based on the frequency of occurrence of earthquakes, geophysical relations, risk in distant areas and political justification. The codes are defined as: 10 = Central, Western and S. Africa 15 = Northern Africa 20 = Antarctica 30 = East Asia 40 = Central Asia and Caucasus 50 = Kamchatka and Kuril Islands 60 = S. and SE. Asia and Indian Ocean 70 = Atlantic Ocean 80 = Bering Sea 90 = Caribbean 100 = Central America 110 = Eastern Europe 120 = Northern and Western Europe 130 = Southern Europe 140 = Middle East 150 = North America and Hawaii 160 = South America 170 = Central and South Pacific"),
  deaths INT64 OPTIONS(description="Number of deaths from the earthquake, it may also include deaths caused by the secondary effects such as the tsunami, volcanic eruption or landslide that was triggered by the earthquake."),
  deaths_description INT64 OPTIONS(description="Description of Deaths from the earthquake. Valid values: 0 to 4. When a description was found in the historical literature instead of an actual number of deaths, this value was coded and listed in the Deaths_amount_order column. If the actual number of deaths was listed, a descriptor was also added for search purposes according to the following definition. 0 = None 1 = Few (~1 to 50 deaths)  2 = Some (~51 to 100 deaths)  3 = Many (~101 to 1000 deaths) 4 = Very Many (~1001 or more deaths)"),
  missing INT64 OPTIONS(description="Number of missing from the earthquake, it may also include missing caused by the secondary effects such as the tsunami, volcanic eruption or landslide that was triggered by the earthquake."),
  missing_description INT64 OPTIONS(description="Description of Deaths from the earthquake. Valid values: 0 to 4. When a description was found in the historical literature instead of an actual number of missing, this value was coded and listed in the Missing_amount_order column. If the actual number of missing was listed, a descriptor was also added for search purposes according to the following definition. 0 = None 1 = Few (~1 to 50 missing)  2 = Some (~51 to 100 missing)  3 = Many (~101 to 1000 missing) 4 = Very Many (~1001 or more missing)"),
  injuries INT64 OPTIONS(description="Number of injuries from the earthquake, it may also include deaths caused by a secondary effect such as the tsunami, volcanic eruption or landslide that was triggered by the earthquake."),
  injuries_description INT64 OPTIONS(description="Description of injuries from the earthquake. Valid values: 0 to 4. When a description was found in the historical literature instead of an actual number of injuries, this value was coded and listed in the Injuries_amount_order column. If the actual number of injuries was listed, a descriptor was also added for search purposes according to the following definition. 0 = None 1 = Few (~1 to 50 injuries)  2 = Some (~51 to 100 injuries)  3 = Many (~101 to 1000 injuries) 4 = Very Many (~1001 or more injuries)"),
  damage_millions_dollars FLOAT64 OPTIONS(description="Damage in Millions of Dollars from the earthquake. The damage amount may also include damage caused by a secondary effect such as a tsunami, volcanic eruption, or landslide that was triggered by the earthquake. The value in the Damage column should be multipled by 1,000,000 to obtain the actual dollar amount in U.S. dollars. The dollar value listed is the value at the time of the event."),
  damage_description INT64 OPTIONS(description="Description of Damage from the earthquake. For those events not offering a monetary evaluation of damage, the following five-level scale was used to classify damage and was listed in the  Damage column.  If the actual dollar amount of damage was listed, a descriptor was also added for search purposes. 0 = NONE 1 = LIMITED (roughly corresponding to less than $1 million) 2 = MODERATE (~$1 to $5 million)  3 = SEVERE (~>$5 to $24 million) 4 = EXTREME (~$25 million or more) When possible, a rough estimate was made of the dollar amount of damage based upon the description provided, in order to choose the damage category. In many cases, only a single  descriptive term was available. These terms were converted to the damage categories based upon the author’s apparent use of the term elsewhere. In the absence of other information,  LIMITED is considered synonymous with slight, minor, and light, SEVERE as synonymous with major, extensive, and heavy, and EXTREME as synonymous with catastrophic."),
  houses_destroyed INT64 OPTIONS(description="Number of Houses Destroyed. Whenever possible, number of houses destroyed by the earthquake are listed; it may also include houses destroyed caused by a secondary effect such as the tsunami, volcanic eruption, or landslide that was triggered by the earthquake."),
  houses_destroyed_description INT64 OPTIONS(description="Description of Houses Destroyed by the Earthquake. For those earthquakes not offering an exact number of houses destroyed, the following four-level scale was used to classify the destruction and was listed in the Houses_amount_order column.  If the actual number of houses destroyed was listed, a descriptor was also added for search purposes.   0 = None 1 = Few (~1 to 50 houses)  2 = Some (~51 to 100 houses)  3 = Many (~101 to 1000 houses) 4 = Very Many (~1001 or more houses)"),
  houses_damaged INT64 OPTIONS(description="Number of Houses Damaged. Whenever possible, number of houses damaged by the earthquake are listed; it may also include houses damaged caused by a secondary effect such as the tsunami, volcanic eruption, or landslide that was triggered by the earthquake."),
  houses_damaged_description INT64 OPTIONS(description="Description of Houses Damaged by the Earthquake. For those earthquakes not offering an exact number of houses damaged, the following four-level scale was used to classify the damage and was listed in the Houses_damaged_amount_order column.  If the actual number of houses destroyed was listed, a descriptor was also added for search purposes.   0 = None 1 = Few (~1 to 50 houses)  2 = Some (~51 to 100 houses)  3 = Many (~101 to 1000 houses) 4 = Very Many (~1001 or more houses)"),
  total_deaths INT64 OPTIONS(description="Number of deaths from the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide."),
  total_deaths_description INT64 OPTIONS(description="Description of Deaths from the earthquake and the secondary effects such as the tsunami, volcanic eruption or landslide. Valid values: 0 to 4. When a description was found in the historical literature instead of an actual number of deaths, this value was coded and listed in the Deaths_amount_order_total column. If the actual number of deaths was listed, a descriptor was also added for search purposes according to the following definition. 0 = None 1 = Few (~1 to 50 deaths)  2 = Some (~51 to 100 deaths)  3 = Many (~101 to 1000 deaths) 4 = Very Many (~1001 or more deaths)"),
  total_missing INT64 OPTIONS(description="Number of missing from the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide."),
  total_missing_description INT64 OPTIONS(description="Description of Deaths from the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide. Valid values: 0 to 4. When a description was found in the historical literature instead of an actual number of missing, this value was coded and listed in the Missing_amount_order_total column. If the actual number of missing was listed, a descriptor was also added for search purposes according to the following definition. 0 = None 1 = Few (~1 to 50 missing)  2 = Some (~51 to 100 missing)  3 = Many (~101 to 1000 missing) 4 = Very Many (~1001 or more missing)"),
  total_injuries INT64 OPTIONS(description="Number of injuries from the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide."),
  total_injuries_description INT64 OPTIONS(description="Description of injuries from the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide. Valid values: 0 to 4. When a description was found in the historical literature instead of an actual number of injuries, this value was coded and listed in the Injuries_amount_order_total column. If the actual number of injuries was listed, a descriptor was also added for search purposes according to the following definition. 0 = None 1 = Few (~1 to 50 injuries)  2 = Some (~51 to 100 injuries)  3 = Many (~101 to 1000 injuries) 4 = Very Many (~1001 or more injuries)"),
  total_damage_millions_dollars FLOAT64 OPTIONS(description="Damage in Millions of Dollars from the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide. The value in the Damage column should be multipled by 1,000,000 to obtain the actual dollar amount in U.S. dollars. The dollar value listed is the value at the time of the event."),
  total_damage_description INT64 OPTIONS(description="For those events not offering a monetary evaluation of damage, the following five-level scale was used to classify damage and was listed in the Damage column.  If the actual dollar amount of damage was listed, a descriptor was also added for search purposes. 0 = NONE 1 = LIMITED (roughly corresponding to less than $1 million) 2 = MODERATE (~$1 to $5 million)  3 = SEVERE (~>$5 to $24 million) 4 = EXTREME (~$25 million or more) When possible, a rough estimate was made of the dollar amount of damage based upon the description provided, in order to choose the damage category. In many cases, only a single descriptive term was available. These terms were converted to the damage categories based upon the author’s apparent use of the term elsewhere. In the absence of other information, LIMITED is considered synonymous with slight, minor, and light, SEVERE as synonymous with major, extensive, and heavy, and EXTREME as synonymous with catastrophic."),
  total_houses_destroyed INT64 OPTIONS(description="Number of Houses Destroyed by the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide."),
  total_houses_destroyed_description INT64 OPTIONS(description="Description of Houses Destroyed by the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide. For those earthquakes not offering an exact number of houses destroyed, the following four-level scale was used to classify the destruction and was listed in the Houses_amount_order_total column.  If the actual number of houses destroyed was listed, a descriptor was also added for search purposes.   0 = None 1 = Few (~1 to 50 houses)  2 = Some (~51 to 100 houses)  3 = Many (~101 to 1000 houses) 4 = Very Many (~1001 or more houses)"),
  total_houses_damaged INT64 OPTIONS(description="Number of Houses Damaged by the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide."),
  total_houses_damaged_description INT64 OPTIONS(description="Description of Houses Damaged by the earthquake and secondary effects such as the tsunami, volcanic eruption or landslide. For those earthquakes not offering an exact number of houses damaged, the following four-level scale was used to classify the damage and was listed in the Houses_dam_amount_order_total column.  If the actual number of houses destroyed was listed, a descriptor was also added for search purposes.   0 = None 1 = Few (~1 to 50 houses)  2 = Some (~51 to 100 houses)  3 = Many (~101 to 1000 houses) 4 = Very Many (~1001 or more houses)")
)
OPTIONS(
  description="The Significant Earthquake Database is a global listing of over 5,700 earthquakes from 2150 BC to the present. The database provides information on the date and time of occurrence, latitude and longitude, focal depth, magnitude, maximum MMI intensity, and socio-economic data such as the total number of casualties, injuries, houses destroyed, and houses damaged, and $ dollage damage estimates. References, political geography, and additional comments are also provided for each earthquake. If the earthquake was associated with a tsunami or volcanic eruption, it is flagged and linked to the related tsunami event or significant volcanic eruption.\n\nUpdate frequency: Weekly\n\nTerms of use; This dataset is publicly available for anyone to use with no restrictions and is provided \"AS IS\" without any warranty, express or implied, from Google. Google disclaims all liability for any damages, direct or indirect, resulting from the use of the dataset.\n\n\nFor more information, check out the GCP Marketplace listing: https://console.cloud.google.com/marketplace/details/noaa-public/noaa-earthquakes"
);

INSERT INTO `bigquery-public-data.noaa_significant_earthquakes.earthquakes` (id, flag_tsunami, year, month, day, hour, minute, second, focal_depth, eq_primary, eq_mag_mw, eq_mag_ms, eq_mag_mb, eq_mag_ml, eq_mag_mfa, eq_mag_unk, intensity, country, state, location_name, latitude, longitude, region_code, deaths, deaths_description, missing, missing_description, injuries, injuries_description, damage_millions_dollars, damage_description, houses_destroyed, houses_destroyed_description, houses_damaged, houses_damaged_description, total_deaths, total_deaths_description, total_missing, total_missing_description, total_injuries, total_injuries_description, total_damage_millions_dollars, total_damage_description, total_houses_destroyed, total_houses_destroyed_description, total_houses_damaged, total_houses_damaged_description) VALUES (338, NULL, 1048, NULL, NULL, NULL, NULL, nan, NULL, nan, nan, nan, nan, nan, nan, nan, NULL, 'UK', NULL, 'UNITED KINGDOM:  BRITIAN', 52.0, nan, 120, NULL, 3, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (771, 'Tsu', 1580, 4, 6, NULL, NULL, nan, 33, 6.2, nan, nan, nan, 6.2, nan, nan, NULL, 'UK', NULL, 'UNITED KINGDOM:  DOVER STRAITS', 51.019, 1.309, 120, NULL, 2, NULL, NULL, NULL, NULL, nan, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (7889, 'Tsu', 1757, 7, 15, NULL, NULL, nan, NULL, nan, nan, nan, nan, nan, nan, nan, NULL, 'UK', NULL, 'UNITED KINGDOM:  ENGLAND: ST. MARY, SCILLY ISLANDS', 49.92, -6.32, 120, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (6697, 'Tsu', 1500, NULL, NULL, NULL, NULL, nan, NULL, nan, nan, nan, nan, nan, nan, nan, NULL, 'USA', 'HI', 'HAWAII', nan, nan, 150, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, 2, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL), (6013, 'Tsu', 1668, 4, 13, NULL, NULL, nan, NULL, nan, nan, nan, nan, nan, nan, nan, 4, 'USA', 'MA', 'BOSTON AND SALEM, MASSACHUSETTS', 42.35, -71.05, 150, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, nan, NULL, NULL, NULL, NULL, NULL);